ScaleEndDetails constructor Null safety

ScaleEndDetails(
  1. {Velocity velocity = Velocity.zero,
  2. int pointerCount = 0}
)

Creates details for GestureScaleEndCallback.

The velocity argument must not be null.

Implementation

ScaleEndDetails({ this.velocity = Velocity.zero, this.pointerCount = 0 })
  : assert(velocity != null);