duration property
final
The amount of time the snack bar should be displayed.
Defaults to 4.0s.
See also:
- ScaffoldState.removeCurrentSnackBar, which abruptly hides the currently displayed snack bar, if any, and allows the next to be displayed.
- material.io/design/components/snackbars.html
Implementation
final Duration duration