runFunction method
Implementation
Future<dynamic> runFunction(
BuildContext context, ActionEntity action, int loop) async {
try {
Logger.printWarning('GoogleMapsControllerMethods');
final controller = getVariable(context, action as GoogleMapsAction);
if (action is GoogleMapsChangePositionAction) {
return changePositionTo(
context, controller, action.lat, action.lng, loop);
}
} catch (e) {
context.read<AppLogsCubit>().onNewLog(
EditorLogEntity(
id: _uuid.v1(),
content: e.toString(),
createdAt: DateTime.now(),
),
);
}
return;
}