PrismConnectionBanner constructor

const PrismConnectionBanner({
  1. Key? key,
  2. required PrismConnectionSource source,
  3. String offlineMessage = 'You are offline — changes will sync when you reconnect',
  4. String? onlineMessage,
  5. Duration onlineDuration = const Duration(seconds: 2),
  6. Duration settleDelay = const Duration(milliseconds: 700),
  7. bool assumeOnline = true,
  8. bool compact = false,
  9. String? retryLabel,
  10. VoidCallback? onRetry,
  11. EdgeInsetsGeometry? margin,
})

Creates a connection banner.

Implementation

const PrismConnectionBanner({
  super.key,
  required this.source,
  this.offlineMessage =
      'You are offline — changes will sync when you reconnect',
  this.onlineMessage,
  this.onlineDuration = const Duration(seconds: 2),
  this.settleDelay = const Duration(milliseconds: 700),
  this.assumeOnline = true,
  this.compact = false,
  this.retryLabel,
  this.onRetry,
  this.margin,
});