NoNetworkManager class final

No network manager

Constructors

NoNetworkManager({required BuildContext? context, required VoidCallback? onRetry, bool isEnable = false, Widget customNoNetworkWidget(VoidCallback? onRetry)?})
Implement required parameters

Properties

context BuildContext?
BuildContext for show modal bottom sheet
final
customNoNetworkWidget → (Widget Function(VoidCallback? onRetry)?)
Define your custom no network widget
final
hashCode int
The hash code for this object.
no setterinherited
isEnable bool
If you want to show no network modal bottom sheet, you should set true
final
onRetry VoidCallback?
When network is not available, this function will be called twice
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
show() Future<void>
Open no network modal bottom sheet
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited