WASIPreview2SocketResult<T> class
final
Result returned by a Preview2 sockets backend operation.
Constructors
- WASIPreview2SocketResult.error(String? errorCode)
-
Failed socket operation with a WASI
error-codelabel.const - WASIPreview2SocketResult.ok(T? value)
-
Successful socket operation.
const
Properties
- errorCode → String?
-
WASI
error-codelabel on failure.final - hashCode → int
-
The hash code for this object.
no setterinherited
- isOk → bool
-
Whether this result is successful.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- value → T?
-
Success payload.
final
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