execute method
Implementation
@override
Future<bool?> execute(String caller, String propertyOrFunction, List<dynamic> arguments) async
{
if (scope == null) return null;
var function = propertyOrFunction.toLowerCase().trim();
switch (function)
{
case "open" :
DrawerViewState? drawer = parent?.findListenerOfExactType(DrawerViewState);
if (drawer != null) return await drawer.openDrawer(S.fromEnum(position));
break;
case "close" :
DrawerViewState? drawer = parent?.findListenerOfExactType(DrawerViewState);
if (drawer != null) return await drawer.closeDrawer(S.fromEnum(position));
break;
}
return super.execute(caller, propertyOrFunction, arguments);
}