IsOnlineProvider class final

Streams true when the device has any active network interface, false when fully offline.

Backed by connectivity_plus. Emits the current state immediately on subscription, then updates as the OS reports interface changes. Note this only reflects whether a network is configured — it doesn't probe reachability of any specific endpoint, so a flaky cellular connection can still report true while individual requests time out.

Consumers (offline banner, auto-suggest hook) treat false as the definitive offline signal but should still expect cloud AI calls to fail under degraded true conditions.

Inheritance
Implemented types

Properties

argument → Object?
If this provider was created with the .family modifier, argument is the variable that was used.
finalinherited
dependencies → Iterable<ProviderOrFamily>?
The list of providers that this provider potentially depends on.
finalinherited
from → Family?
If this provider was created with the .family modifier, from is the .family instance.
finalinherited
future → Refreshable<Future<bool>>
Obtains the Future representing this provider.
no setterinherited
hashCode → int
The hash code for this object.
no setterinherited
isAutoDispose → bool
Whether the state associated to this provider should be disposed automatically when the provider stops being listened.
finalinherited
name → String?
A custom label for providers.
finalinherited
origin → ProviderBase<AsyncValue<bool>>
The provider that is overridden.
no setterinherited
retry → Retry?
The retry strategy to use when a provider fails.
finalinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

$createElement($ProviderPointer pointer) → $StreamProviderElement<bool>
@nodoc
create(Ref ref) → Stream<bool>
@nodoc
debugGetCreateSourceHash() → String
A debug-only function for obtaining a hash of the source code of the initialization function.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
overrideWith(Create<Stream<bool>> create) → Override
Override the provider with a new initialization function.
inherited
overrideWithValue(AsyncValue<bool> value) → Override
Overrides a provider with a value, ejecting the default behavior.
inherited
selectAsync<OutT>(OutT selector(bool data)) → ProviderListenable<Future<OutT>>
A variant of select for asynchronous values
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited