afterNotLocked method
The afterNotLocked method will check if the state is locked,
if the state is locked it will display the loading
widget.
Implementation
Widget afterNotLocked(String name,
{required Function() child, Widget? loading}) {
if (isLocked(name)) {
return loading ?? Nylo.appLoader();
}
return child();
}