Alert.offline constructor

const Alert.offline({
  1. Key? key,
  2. required Widget child,
  3. Widget closeIcon = _defaultCloseIcon,
  4. bool isVisible = _defaultIsVisible,
  5. VoidCallback? onClose,
  6. EdgeInsets padding = _defaultPadding,
})

Alert banners communicate a state.

Offline uses Icons.wifi and a dark grey color.

Implementation

const Alert.offline({
  super.key,
  required this.child,
  this.closeIcon = _defaultCloseIcon,
  this.isVisible = _defaultIsVisible,
  this.onClose,
  this.padding = _defaultPadding,
})  : color = const Color(0xFF444444),
      icon = const Icon(Icons.wifi);