OptionalDataWidgetBuilder<T> typedef

OptionalDataWidgetBuilder<T> = Widget Function(BuildContext context, T? data, Widget? child)

A widget builder that receives the data (that may be null) from the ancestor

Implementation

typedef OptionalDataWidgetBuilder<T> = Widget Function(
    BuildContext context, T? data, Widget? child);