PrismConnectionBanner constructor
- Key? key,
- required PrismConnectionSource source,
- String offlineMessage = 'You are offline — changes will sync when you reconnect',
- String? onlineMessage,
- Duration onlineDuration = const Duration(seconds: 2),
- Duration settleDelay = const Duration(milliseconds: 700),
- bool assumeOnline = true,
- bool compact = false,
- String? retryLabel,
- VoidCallback? onRetry,
- 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,
});