MagnifierBuilder typedef Null safety

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

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

Consuming MagnifierController or ValueNotifier<MagnifierInfo> is not required, although if a Widget intends to have entry or exit animations, it should take MagnifierController and provide it an AnimationController, so that MagnifierController can wait before removing it from the overlay.

See also:

Implementation

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