DevicePixelRatioGetter typedef
Signature for a callback that returns the device pixel ratio of a
FlutterView identified by the provided viewId
.
Returns null if no view with the provided ID exists.
Used by PointerEventConverter.expand.
See also:
- FlutterView.devicePixelRatio for an explanation of device pixel ratio.
Implementation
typedef DevicePixelRatioGetter = double? Function(int viewId);