execute method

  1. @override
FutureOr<void> execute(
  1. BuildContext context, {
  2. Map<String, dynamic>? arguments,
})
override

Implementation

@override
FutureOr<void> execute(BuildContext context,
    {Map<String, dynamic>? arguments}) {
  final messenger = ScaffoldMessenger.maybeOf(context);
  if (messenger == null) {
    vyuh.log?.d('No ScaffoldMessenger found in the widget tree');
    return null;
  }

  if (immediately) {
    messenger.removeCurrentSnackBar();
  } else {
    messenger.hideCurrentSnackBar();
  }
}