MagnifierBuilder typedef

MagnifierBuilder = Widget? Function(BuildContext context, MagnifierController controller, ValueNotifier<MagnifierInfo> magnifierInfo)

Signature for a builder that builds a Widget with a MagnifierController.

The builder is called exactly once per magnifier.

If the controller parameter's MagnifierController.animationController field is set (by the builder) to an AnimationController, the MagnifierController will drive the animation during entry and exit.

The magnifierInfo parameter is updated with new MagnifierInfo instances during the lifetime of the built magnifier, e.g. as the user moves their finger around the text field.

Implementation

typedef MagnifierBuilder = Widget? Function(
    BuildContext context,
    MagnifierController controller,
    ValueNotifier<MagnifierInfo> magnifierInfo,
);