CommandKey<R> class
final
A place in a batch, and the type of what will come back from it.
final batch = game.createCommandBatch();
final hit = batch.execute(damage, (amount: 1, crit: false));
final id = batch.supply(nextId);
final results = await batch.send();
print(hit[results]); // int, typed by the key
print(id[results]); // int, from a different command entirely
The key carries R, so reading a result names neither the command again
nor a buffer - and it takes a CommandResults, which only exists once
the batch has actually been sent.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- 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
-
operator [](
CommandResults results) → R -
This call's result, out of
results.