payload property

  1. @override
Uint8List get payload
override

Implementation

@override
Uint8List get payload {
  var payload = <int>[];
  payload.add(Action.values.indexOf(action!));
  return Uint8List.fromList(payload);
}
  1. @override
set payload (Uint8List? payload)
override

Implementation

@override
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];
}