Alert.offline constructor
const
Alert.offline({
- Key? key,
- required Widget child,
- Widget closeIcon = _defaultCloseIcon,
- bool isVisible = _defaultIsVisible,
- VoidCallback? onClose,
- 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);