execute method
Implementation
@override
Future<bool?> execute(String caller, String propertyOrFunction, List<dynamic> arguments) async
{
/// setter
if (scope == null) return null;
var function = propertyOrFunction.toLowerCase().trim();
switch (function)
{
case "animate":
if (animations != null)
{
var id = S.item(arguments, 0);
AnimationModel? animation;
if (!S.isNullOrEmpty(id))
{
var list = animations!.where((animation) => animation.id == id);
if (list.isNotEmpty) animation = list.first;
}
else {
animation = animations!.first;
}
animation?.execute(caller, propertyOrFunction, arguments);
}
return true;
}
return super.execute(caller, propertyOrFunction, arguments);
}