StatusBuilder typedef Null safety

StatusBuilder = Widget Function(BuildContext context, PreconditionStatus status)

Optionally provide this Widget builder to render a feedback to your user, i.e. "Please grant all permissions", etc. Example:

(BuildContext context, PreconditionStatus status) {
   if (status.isNotSatisfied) return Text("Please buy a new phone, because ${status.data}.");
   return Container();
}

Implementation

typedef Widget StatusBuilder(BuildContext context, PreconditionStatus status);