VelocityEstimate constructor Null safety

const VelocityEstimate(
  1. {required Offset pixelsPerSecond,
  2. required double confidence,
  3. required Duration duration,
  4. required Offset offset}

Creates a dimensional velocity estimate.

pixelsPerSecond, confidence, duration, and offset must not be null.


const VelocityEstimate({
  required this.pixelsPerSecond,
  required this.confidence,
  required this.duration,
  required this.offset,
}) : assert(pixelsPerSecond != null),
     assert(confidence != null),
     assert(duration != null),
     assert(offset != null);