call method

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

This method is called by the BaseWidget when sinkState?.add(YourState) is called

Implementation

@override
call(BuildContext context) {
  Fluttertoast.showToast(
      msg: translate(context, error.message ?? ''),
      toastLength: Toast.LENGTH_LONG,
      backgroundColor: Theme.of(context).colorScheme.error,
      gravity: ToastGravity.CENTER);
}