ConnectListener class

连接状态监听

Constructors

ConnectListener({dynamic onConnecting()?, dynamic onSuccess()?, dynamic onError(dynamic error)?, dynamic onClose()?})

Properties

hashCode int
The hash code for this object.
no setterinherited
onClose → (dynamic Function()?)
final
onConnecting → (dynamic Function()?)
final
onError → (dynamic Function(dynamic error)?)
final
onSuccess → (dynamic Function()?)
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

close() → void
connecting() → void
error(dynamic error) → void
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
success() → void
toString() String
A string representation of this object.
inherited

Operators

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