DisconnectReason class
Represents a reason for disconnecting from a peer. This is used to communicate the intention behind a Conn closure.
Constructors
- DisconnectReason.new({required int code, required String message})
-
const
Properties
- code → int
-
A unique identifier for this disconnect reason
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- message → String
-
A human-readable message explaining the reason for disConn
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited