SyncConnectivityService class
Implementação simples de conectividade para o sistema de sincronização Não depende de serviços externos
- Implemented types
Constructors
Properties
-
connectivityStream
→ Stream<
SyncConnectivityStatus> -
no setteroverride
- hashCode → int
-
The hash code for this object.
no setterinherited
-
isConnectedStream
→ Stream<
bool> -
no setteroverride
- isWifiOnlyMode → bool
-
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
dispose(
) → void - Dispõe dos recursos do provider
-
forceConnectivityCheck(
) → Future< void> - Força uma verificação imediata de conectividade
-
getConnectivityStatus(
) → Future< SyncConnectivityStatus> -
override
-
getNetworkInfo(
) → Future< Map< String, dynamic> > -
override
-
isConnected(
) → Future< bool> -
override
-
isMobileConnected(
) → Future< bool> -
override
-
isSuitableForSync(
) → Future< bool> -
override
-
isWifiConnected(
) → Future< bool> -
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
setMonitoringInterval(
Duration interval) → void - Configura o intervalo de monitoramento de conectividade
-
setTestUrls(
List< String> urls) → void -
override
-
setWifiOnlyMode(
bool wifiOnly) → void -
override
-
testInternetConnectivity(
{String? testUrl, Duration? timeout}) → Future< bool> -
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited