duration is the duration that the snackbar will be displayed, if duration is zero, the snackbar will not be dismissed automatically.
By default duration is 2 seconds
final Duration? duration;