isOnlineProvider top-level property
- @ProviderFor.new(isOnline)
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.
Copied from isOnline.
Implementation
@ProviderFor(isOnline)
final isOnlineProvider = StreamProvider<bool>.internal(
isOnline,
name: r'isOnlineProvider',
debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product')
? null
: _$isOnlineHash,
dependencies: null,
allTransitiveDependencies: null,
);