NetInfo class

Really basic interface providing network availability info. Emits:

  • online - when browser goes online
  • offline - when browser goes offline
Inheritance
Implemented types
Annotations
  • @JS()

Constructors

NetInfo()
factory

Properties

callbacks CallbackRegistry
getter/setter pairinherited
failThrough Function
getter/setter pairinherited
global_callbacks List<Function>
getter/setter pairinherited
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

bind(String eventName, Function callback, [dynamic context]) → dynamic
inherited
bind_global(Function callback) → dynamic
inherited
emit(String eventName, [dynamic data, Metadata metadata]) Dispatcher
inherited
isOnline() bool
Returns whether browser is online or not Offline means definitely offline (no connection to router). Inverse does NOT mean definitely online (only currently supported in Safari and even there only means the device has a connection to the router).
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
unbind([String eventName, Function callback, dynamic context]) → dynamic
inherited
unbind_all() → dynamic
inherited
unbind_global([Function callback]) → dynamic
inherited

Operators

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