MethodChannelConnectivity class
An implementation of ConnectivityPlatform that uses method channels.
- Inheritance
-
- Object
- PlatformInterface
- ConnectivityPlatform
- MethodChannelConnectivity
Constructors
Properties
- eventChannel ↔ EventChannel
-
The event channel used to receive ConnectivityResult changes from the native platform.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- methodChannel ↔ MethodChannel
-
The method channel used to interact with the native platform.
getter/setter pair
-
onConnectivityChanged
→ Stream<
List< ConnectivityResult> > -
Fires whenever the connectivity state changes.
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
checkConnectivity(
) → Future< List< ConnectivityResult> > -
Checks the connection status of the device.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited