call method

  1. @override
void call(
  1. BuildContext param
)
override

Implementation

@override
call(param) {
  Fluttertoast.showToast(
      msg: "${elementNameMessage ?? ""} ${Translations.of(param)!.text(message)}",
      backgroundColor: color ?? Theme.of(param).colorScheme.secondary,
      textColor: textColor ?? Theme.of(param).colorScheme.onSecondary,
      toastLength: length ?? Toast.LENGTH_LONG,
      gravity: toastGravity ?? ToastGravity.CENTER);
}