DevicePixelRatioGetter typedef

DevicePixelRatioGetter = double? Function(int viewId)

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:

Implementation

typedef DevicePixelRatioGetter = double? Function(int viewId);