VelocityEstimate constructor

const VelocityEstimate({@required Offset pixelsPerSecond, @required double confidence, @required Duration duration, @required Offset offset })

Creates a dimensional velocity estimate.

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

Implementation

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);