PointerUpEvent constructor

const PointerUpEvent({Duration timeStamp: Duration.zero, int pointer: 0, PointerDeviceKind kind: PointerDeviceKind.touch, int device: 0, Offset position: Offset.zero, Offset localPosition, int buttons: 0, bool obscured: false, double pressure: 0.0, double pressureMin: 1.0, double pressureMax: 1.0, double distance: 0.0, double distanceMax: 0.0, double size: 0.0, double radiusMajor: 0.0, double radiusMinor: 0.0, double radiusMin: 0.0, double radiusMax: 0.0, double orientation: 0.0, double tilt: 0.0, Matrix4 transform, PointerUpEvent original })

Creates a pointer up event.

All of the arguments must be non-null.

Implementation

const PointerUpEvent({
  Duration timeStamp = Duration.zero,
  int pointer = 0,
  PointerDeviceKind kind = PointerDeviceKind.touch,
  int device = 0,
  Offset position = Offset.zero,
  Offset localPosition,
  int buttons = 0,
  bool obscured = false,
  // Allow pressure customization here because PointerUpEvent can contain
  // non-zero pressure. See https://github.com/flutter/flutter/issues/31340
  double pressure = 0.0,
  double pressureMin = 1.0,
  double pressureMax = 1.0,
  double distance = 0.0,
  double distanceMax = 0.0,
  double size = 0.0,
  double radiusMajor = 0.0,
  double radiusMinor = 0.0,
  double radiusMin = 0.0,
  double radiusMax = 0.0,
  double orientation = 0.0,
  double tilt = 0.0,
  Matrix4 transform,
  PointerUpEvent original,
}) : super(
       timeStamp: timeStamp,
       pointer: pointer,
       kind: kind,
       device: device,
       position: position,
       localPosition: localPosition,
       buttons: buttons,
       down: false,
       obscured: obscured,
       pressure: pressure,
       pressureMin: pressureMin,
       pressureMax: pressureMax,
       distance: distance,
       distanceMax: distanceMax,
       size: size,
       radiusMajor: radiusMajor,
       radiusMinor: radiusMinor,
       radiusMin: radiusMin,
       radiusMax: radiusMax,
       orientation: orientation,
       tilt: tilt,
       transform: transform,
       original: original,
     );