abilityBuilder property
A builder function that receives the permission result and returns a widget dynamically.
This is useful when the UI needs to respond to the permission result dynamically rather than just showing a predefined child.
Implementation
final Widget Function(BuildContext context, bool hasPermission)?
abilityBuilder;