LitSnackbarController constructor

LitSnackbarController({
  1. Duration animationDuration = const Duration(milliseconds: 350),
  2. Duration displayDuration = const Duration(milliseconds: 3500),
  3. SnackbarAnimationType animationType = SnackbarAnimationType.rightToLeft,
})

Creates a new controller for a LitSnackbar.

{@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,
});