OnConnectivityWidget constructor

const OnConnectivityWidget({
  1. Key? key,
  2. PositionType? position,
  3. bool? cancelInitState,
  4. Animation<Offset>? customAnimation,
  5. Alignment? customPosition,
  6. Widget? mobileWidget,
  7. Widget? noneWidget,
  8. Widget? wifiWidget,
  9. Duration? messageDuration,
  10. Duration? messageDurationWhenOnline,
  11. Duration? animationDuration,
  12. Curve? animationType,
  13. bool? showNoneUntilOnline = true,
})

Main Widget for use on_connectivity_widget

This Widget will listen and show a custom message everytime network state change.

Important:

Implementation

const OnConnectivityWidget({
  Key? key,
  this.position,
  this.cancelInitState,
  this.customAnimation,
  this.customPosition,
  this.mobileWidget,
  this.noneWidget,
  this.wifiWidget,
  this.messageDuration,
  this.messageDurationWhenOnline,
  this.animationDuration,
  this.animationType,
  this.showNoneUntilOnline = true,
})  : assert(customAnimation == null || animationType == null,
          "Cannot provide both a customAnimation and a showAnimation/"),
      assert(customPosition == null || position == null,
          "Cannot provide both a customPosition and a position"),
      super(key: key);