ConnectivityBuilder constructor

const ConnectivityBuilder({
  1. Key? key,
  2. required Widget builder(
    1. bool isConnected
    ),
  3. Gradient? gradient,
  4. Widget? offlineWidget,
  5. Color bgColor = Colors.red,
  6. Position position = Position.bottom,
  7. bool disableInteraction = false,
  8. AlignmentGeometry alignment = Alignment.center,
  9. String message = kInternetNotAvailable,
  10. 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);