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
{
  if (scope == null) return null;
  var function = propertyOrFunction.toLowerCase().trim();

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