ConnectListener class

连接状态监听

Constructors

ConnectListener({required dynamic onConnecting(), required dynamic onSuccess(), required dynamic onClose(int code, String? error)})

Properties

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

Methods

close(int code, String? error) → void
connecting() → 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