Can.builder constructor
const
Can.builder({})
Creates a Can widget using a builder function to dynamically generate the widget based on permissions.
Irepresents the action being checked.arepresents the subject being checked.abilityBuilderis called with the permission result (trueif allowed,falseotherwise).- If
notistrue, the logic is reversed.
Implementation
const Can.builder({
Key? key,
required this.I,
required this.a,
required this.abilityBuilder,
this.not = false,
}) : child = null,
fallback = null,
super(key: key);