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
{
  var function = propertyOrFunction.toLowerCase().trim();
  switch (function)
  {

    // case "export":
    //   String format  =  S.toStr(S.item(arguments, 0))?.toLowerCase() ?? "html";
    //   bool   history =  S.toBool(S.item(arguments, 1)) ?? false;
    //   Stash().export(format: format, withHistory: history);
    //   return true;

    // case "clear":
    //   Stash().delete();
    //   return true;

    case 'start':
    case 'fire':
      Data data = await Stash.getData();
      super.onSuccess(data);
      return true;
  }
  return super.execute(caller, propertyOrFunction, arguments);
}