OfflineSwitch class
Instance that allows connecting or disconnecting the Mapbox stack to the network.
Constructors
- OfflineSwitch({BinaryMessenger? binaryMessenger})
-
Constructor for OfflineSwitch. The
binaryMessenger
named argument is available for dependency injection. If it is left null, the default BinaryMessenger will be used which routes to the host platform.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
isMapboxStackConnected(
) → Future< bool> - Provides information if the Mapbox stack is connected or disconnected via OfflineSwitch.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
reset(
) → Future< void> - Releases the OfflineSwitch singleton instance.
-
setMapboxStackConnected(
bool arg_connected) → Future< void> - Connects or disconnects the Mapbox stack. If set to false, current and new HTTP requests will fail with HttpRequestErrorType#ConnectionError.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
-
codec
→ const MessageCodec<
Object?>