execute method

  1. @override
Future<bool?> execute(
  1. String caller,
  2. String propertyOrFunction,
  3. List arguments
)
override

Implementation

@override
Future<bool?> execute(String caller, String propertyOrFunction, List<dynamic> arguments) async
{
  /// setter
  if (scope == null) return null;
  String function = propertyOrFunction.toLowerCase().trim();

  bool refresh = S.toBool(S.item(arguments,0)) ?? false;
  switch (function)
  {
    case "start" : return await start(refresh: refresh);
    case "stop"  : return await stop();
  }
  return super.execute(caller, propertyOrFunction, arguments);
}