ConnectivityAdapter class abstract

Translates connectivity_plus results into this package's ConnectivityType, so the public API never leaks a third-party type. Swap this out via ConnectivityAdapter.custom if you need a different underlying connectivity source.

Constructors

ConnectivityAdapter.platform()
The default adapter, backed by connectivity_plus.
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
onChanged Stream<List<ConnectivityType>>
A stream of connectivity type changes.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

check() Future<List<ConnectivityType>>
Current connectivity type(s). Most platforms report a single type; some (e.g. Android) can report several simultaneously.
dispose() → void
Releases any underlying resources (stream subscriptions, etc.).
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