hideCurrentSnackBar function Null safety

  1. @Deprecated('Use `Asuka.hideCurrentSnackBar` instead')
void hideCurrentSnackBar(
  1. {SnackBarClosedReason reason = material.SnackBarClosedReason.remove,
  2. bool callback = false}
)

Removes the current SnackBar by running its normal exit animation.

The closed completer is called after the animation is complete.

Implementation

@Deprecated('Use `Asuka.hideCurrentSnackBar` instead')
void hideCurrentSnackBar(
    {material.SnackBarClosedReason reason =
        material.SnackBarClosedReason.remove,
    bool callback = false}) {
  return Asuka.hideCurrentSnackBar(reason: reason, callback: callback);
}