payload property
Implementation
Uint8List get payload {
var payload = <int>[];
payload.add(Action.values.indexOf(action!));
return new Uint8List.fromList(payload);
}
Implementation
set payload(Uint8List? payload) {
int actionIndex = payload![0];
if (actionIndex >= Action.values.length && actionIndex < 0) {
throw RangeError.range(actionIndex, 0, Action.values.length);
}
action = Action.values[actionIndex];
}