DeviceGestureSettings.fromView constructor
- 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
);
}