ConnectivityBuilder constructor
const
ConnectivityBuilder({
- Key? key,
- required Widget builder(
- bool isConnected
- Gradient? gradient,
- Widget? offlineWidget,
- Color bgColor = Colors.red,
- Position position = Position.bottom,
- bool disableInteraction = false,
- AlignmentGeometry alignment = Alignment.center,
- String message = kInternetNotAvailable,
- TextStyle textStyle = const TextStyle(fontSize: 14, color: Colors.white),
Implementation
const ConnectivityBuilder({
Key? key,
required this.builder,
this.gradient,
this.offlineWidget,
this.bgColor = Colors.red,
this.position = Position.bottom,
this.disableInteraction = false,
this.alignment = Alignment.center,
this.message = kInternetNotAvailable,
this.textStyle = const TextStyle(fontSize: 14, color: Colors.white),
}) : super(key: key);