Velocity constructor

const Velocity({@required Offset pixelsPerSecond })

Creates a velocity.

The pixelsPerSecond argument must not be null.

Implementation

const Velocity({
  @required this.pixelsPerSecond,
}) : assert(pixelsPerSecond != null);