ConnectivityPlusAdapter class

基于 connectivity_plus 的默认适配器 / Default adapter backed by connectivity_plus.

Implemented types

Constructors

ConnectivityPlusAdapter([Connectivity? connectivity])
构造 ConnectivityPlusAdapter / Creates a ConnectivityPlusAdapter.

Properties

hashCode int
The hash code for this object.
no setterinherited
onConnectivityChanged Stream<List<String>>
监听连接类型变化 / Emits whenever the transports change.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

checkConnectivity() Future<List<String>>
读取当前连接类型(如 ['wifi'])/ Reads the current transports, e.g. ['wifi'].
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