AutoDisconnect constructor

const AutoDisconnect({
  1. required int duration,
  2. bool showRemainingTimeInNotification = true,
  3. TimeFormat timeFormat = TimeFormat.withSeconds,
  4. OnExpireBehavior onExpire = OnExpireBehavior.disconnectWithNotification,
  5. String? expiredNotificationMessage,
})

Implementation

const AutoDisconnect({
  required this.duration,
  this.showRemainingTimeInNotification = true,
  this.timeFormat = TimeFormat.withSeconds,
  this.onExpire = OnExpireBehavior.disconnectWithNotification,
  this.expiredNotificationMessage,
});