OnConnectivityWidget constructor
const
OnConnectivityWidget({
- Key? key,
- PositionType? position,
- bool? cancelInitState,
- Animation<
Offset> ? customAnimation, - Alignment? customPosition,
- Widget? mobileWidget,
- Widget? noneWidget,
- Widget? wifiWidget,
- Duration? messageDuration,
- Duration? messageDurationWhenOnline,
- Duration? animationDuration,
- Curve? animationType,
- bool? showNoneUntilOnline = true,
Main Widget for use on_connectivity_widget
This Widget will listen and show a custom message everytime network state change.
Important:
- If customAnimation is't null, animationType need to be null.
- If customPosition is't null, position need to be null.
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);