ApiRequest class
Constructors
- ApiRequest({required int id, int idWidth = 4, Uint8List? data})
-
Creates a new ApiRequest given an
id
and some optionaldata
. - ApiRequest.fromUtf8({required int id, required String data})
-
Create a request using an encoded UTF-8 string as the
data
.factory
Properties
- data → Uint8List?
-
A list of of integers that must comply to the type Uint8.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → int
-
A unique identifier represented.
final
- idWidth → int
-
The number of bytes to reserve for the endpoint id.
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
-
toIntList(
) → Uint8List - Convert the request into a socket-compatible Uint8List.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited