show static method

dynamic show(
  1. ABC abc,
  2. String msg, {
  3. required bool success,
})

Implementation

static show(ABC abc, String msg, {required bool success}) {
  final snackBar = success
      ? SnackBar(content: Text(msg), backgroundColor: Colors.blue)
      : SnackBar(content: Text(msg), backgroundColor: Colors.red);
  getSnackbar(abc).currentState?.removeCurrentSnackBar();
  getSnackbar(abc).currentState?.showSnackBar(snackBar);
}