showSnackBar static method

void showSnackBar(
  1. {@required SnackBar snackBar}
)

Implementation

static void showSnackBar({@required SnackBar snackBar}) {
  _globalProvider.globalScaffoldKey.currentState.removeCurrentSnackBar();
  _globalProvider.globalScaffoldKey.currentState.showSnackBar(snackBar);
}