GestureDetails constructor

GestureDetails({
  1. Offset? offset,
  2. double? totalScale,
  3. GestureDetails? gestureDetails,
  4. ActionType actionType = ActionType.pan,
  5. bool userOffset = true,
})

Implementation

GestureDetails(
    {this.offset,
    this.totalScale,
    GestureDetails? gestureDetails,
    this.actionType = ActionType.pan,
    this.userOffset = true}) {
  if (gestureDetails != null) {
    _computeVerticalBoundary = gestureDetails._computeVerticalBoundary;
    _computeHorizontalBoundary = gestureDetails._computeHorizontalBoundary;
    _center = gestureDetails._center;
    layoutRect = gestureDetails.layoutRect;
    destinationRect = gestureDetails.destinationRect;

    ///zoom end will call twice
    /// zoom end
    /// zoom start
    /// zoom update
    /// zoom end
  }
}