Velocity constructor Null safety
- {required Offset pixelsPerSecond}
Creates a velocity.
The pixelsPerSecond argument must not be null.
Implementation
const Velocity({
required this.pixelsPerSecond,
}) : assert(pixelsPerSecond != null);
Creates a velocity.
The pixelsPerSecond argument must not be null.
const Velocity({
required this.pixelsPerSecond,
}) : assert(pixelsPerSecond != null);