ConnectivityPlatform class abstract

The interface that implementations of connectivity must implement.

Platform implementations should extend this class rather than implement it as Connectivity does not consider newly added methods to be breaking changes. Extending this class (using extends) ensures that the subclass will get the default implementation, while platform implementations that implements this interface will be broken by newly added ConnectivityPlatform methods.

Inheritance
  • Object
  • PlatformInterface
  • ConnectivityPlatform
Implementers

Constructors

ConnectivityPlatform()
Constructs a ConnectivityPlatform.

Properties

hashCode int
The hash code for this object.
no setterinherited
onConnectivityChanged Stream<List<ConnectivityResult>>
Returns a Stream of ConnectivityResults changes.
no setter
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.
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

Static Properties

instance ConnectivityPlatform
The default instance of ConnectivityPlatform to use.
getter/setter pair