duration property
Sets the how long the snack bar will be displayed. The default duration is 2 seconds.
Implementation
final Duration duration;
Sets the how long the snack bar will be displayed. The default duration is 2 seconds.
final Duration duration;