Velocity constructor Null safety

const Velocity(
  1. {required Offset pixelsPerSecond}
)

Creates a velocity.

The pixelsPerSecond argument must not be null.

Implementation

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