LitSnackbarController constructor
LitSnackbarController({
- Duration animationDuration = const Duration(milliseconds: 350),
- Duration displayDuration = const Duration(milliseconds: 3500),
- SnackbarAnimationType animationType = SnackbarAnimationType.rightToLeft,
Creates a new controller for a LitSnackbar.
-
animationDuration is the animation's duration.
-
displayDuration is the duration a snackbar should be display on the screen.
-
animationType describes how the animation should behave.
{@tool snippet} Alternativly the init method could be executed on the LitSnackbarController's initialization inside the State.initState method like stated below:
_customSnackBarController = LitSnackbarController()..init(this);
{@end-tool}
Implementation
LitSnackbarController({
this.animationDuration = const Duration(
milliseconds: 350,
),
this.displayDuration = const Duration(milliseconds: 3500),
this.animationType = SnackbarAnimationType.rightToLeft,
});