showSnackBar function Null safety
- @Deprecated('Use `Asuka.showSnackBar` instead')
Shows a SnackBar at the bottom of the scaffold.
A scaffold can show at most one snack bar at a time. If this function is called while another snack bar is already visible, the given snack bar will be added to a queue and displayed after the earlier snack bars have closed.
To control how long a SnackBar remains visible, use SnackBar.duration.
To remove the SnackBar with an exit animation, use hideCurrentSnackBar or call ScaffoldFeatureController.close on the returned ScaffoldFeatureController. To remove a SnackBar suddenly (without an animation), use removeCurrentSnackBar.
See Scaffold.of for information about how to obtain the ScaffoldState.
Implementation
@Deprecated('Use `Asuka.showSnackBar` instead')
material.ScaffoldFeatureController<material.SnackBar,
material.SnackBarClosedReason>
showSnackBar(material.SnackBar snackbar, {bool callback = false}) {
return Asuka.showSnackBar(snackbar, callback: callback);
}