BankAppGateScreen.offline constructor

const BankAppGateScreen.offline({
  1. Key? key,
  2. VoidCallback? onRetry,
  3. String? title,
  4. String? body,
  5. IconData? icon,
  6. Widget? illustration,
  7. String? primaryActionLabel = 'Try again',
  8. String? secondaryActionLabel,
  9. VoidCallback? onSecondaryAction,
  10. List<String>? steps,
  11. List<String>? stillWorking,
  12. String stillWorkingTitle = _kStillWorkingTitle,
  13. String? moneySafetyLine,
  14. String? referenceCode,
  15. String referenceCodeHint = _kReferenceCodeHint,
  16. String copiedLabel = _kCopiedLabel,
  17. Widget? supportContact,
  18. String? supportPhoneLabel,
  19. VoidCallback? onContactSupport,
  20. IconData? supportIcon,
  21. String? appVersion,
  22. String versionPrefix = _kVersionPrefix,
  23. DateTime? lastUpdatedAt,
  24. String lastUpdatedPrefix = _kLastUpdatedPrefix,
  25. DateTime? resumesAt,
  26. String backByLabel = _kBackByLabel,
  27. String overrunLabel = _kOverrunLabel,
  28. DateTime clock()?,
  29. int? queuePosition,
  30. int? queueInitialPosition,
  31. Duration? estimatedWait,
  32. String queueKeepPlaceLine = _kQueueKeepPlaceLine,
  33. String queuePositionLine(
    1. int position,
    2. Duration? estimatedWait
    )?,
  34. EdgeInsetsGeometry? padding,
  35. Color? backgroundColor,
  36. Color? accentColor,
  37. TextStyle? titleStyle,
  38. TextStyle? bodyStyle,
  39. Duration? animationDuration,
  40. Curve? animationCurve,
  41. String? semanticLabel,
})

Offline gate: explains the connection is the cause and wires a 'Try again' primary action to onRetry.

Implementation

const BankAppGateScreen.offline({
  super.key,
  VoidCallback? onRetry,
  this.title,
  this.body,
  this.icon,
  this.illustration,
  this.primaryActionLabel = 'Try again',
  this.secondaryActionLabel,
  this.onSecondaryAction,
  this.steps,
  this.stillWorking,
  this.stillWorkingTitle = _kStillWorkingTitle,
  this.moneySafetyLine,
  this.referenceCode,
  this.referenceCodeHint = _kReferenceCodeHint,
  this.copiedLabel = _kCopiedLabel,
  this.supportContact,
  this.supportPhoneLabel,
  this.onContactSupport,
  this.supportIcon,
  this.appVersion,
  this.versionPrefix = _kVersionPrefix,
  this.lastUpdatedAt,
  this.lastUpdatedPrefix = _kLastUpdatedPrefix,
  this.resumesAt,
  this.backByLabel = _kBackByLabel,
  this.overrunLabel = _kOverrunLabel,
  this.clock,
  this.queuePosition,
  this.queueInitialPosition,
  this.estimatedWait,
  this.queueKeepPlaceLine = _kQueueKeepPlaceLine,
  this.queuePositionLine,
  this.padding,
  this.backgroundColor,
  this.accentColor,
  this.titleStyle,
  this.bodyStyle,
  this.animationDuration,
  this.animationCurve,
  this.semanticLabel,
})  : reason = BankAppGateReason.offline,
      onPrimaryAction = onRetry;