NativeEvent class final

A completion reported by the native layer, copied out of its batch.

The native batch is released as soon as the callback that delivered it returns, so this type holds plain Dart values only.

Constructors

NativeEvent({required int opId, required wt_op_t kind, required int status, required Pointer<Void> handle, required Pointer<Void> handle2, required int aux, required Uint8List? data, required String? message})

Properties

aux → int
final
data → Uint8List?
Payload, when the operation produced one (datagrams, owned reads).
final
handle → Pointer<Void>
final
handle2 → Pointer<Void>
final
hashCode → int
The hash code for this object.
no setterinherited
isEof → bool
True when a read hit the end of the stream.
no setter
isOk → bool
True for WT_OK and WT_EOF.
no setter
kind → wt_op_t
final
message → String?
Diagnostic text, when the native layer reported one.
final
opId → int
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
status → int
Raw wt_status_t value.
final

Methods

exception([Object? operation]) → WebTransportException
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