FlutterNetworkConnection class
Constructors
- FlutterNetworkConnection()
-
factory
Properties
Methods
-
closeListingStream(
) → void - 关闭监听流
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
start(
String address, {ValueChanged< String> ? sourceData}) → Future<void> - 开始检测网络url
-
startWithType(
String address, {String? type, ValueChanged< String> ? sourceData}) → Future<void> - 开始检测网络url
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- instance → FlutterNetworkConnection
-
no setter
Static Methods
-
getCurrentBandwidthQuality(
) → Future< String> - 获取当前网络质量
-
getDownloadKBitsPerSecond(
) → Future< double> - 获取当前下载速度
-
startSampling(
) → Future< void> - 开始采样
-
stopSampling(
) → Future< void> - 停止采样