execute method
Implementation
Future<dynamic> execute(BuildContext context, {JSON data = const {}}) {
switch (type.toLowerCase()) {
case 'route':
return _route(context);
case 'command':
return _command(context, data);
default:
return Future.value(null);
}
}