DeviceGestureSettings.fromView constructor

DeviceGestureSettings.fromView(
  1. FlutterView view
)

Create a new DeviceGestureSettings from the provided view.

Implementation

factory DeviceGestureSettings.fromView(ui.FlutterView view) {
  final double? physicalTouchSlop = view.gestureSettings.physicalTouchSlop;
  return DeviceGestureSettings(
    touchSlop: physicalTouchSlop == null ? null : physicalTouchSlop / view.devicePixelRatio
  );
}