ScaleEndDetails constructor Null safety

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

Creates details for GestureScaleEndCallback.

The velocity argument must not be null.

Implementation

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