action property

Action? action

get the first action if it exists

Implementation

Action? get action {
  if (_actionRecords.isNotEmpty) {
    return _actionRecords[0].action;
  } else {
    return null;
  }
}
void action=(Action? action)

Implementation

set action(Action? action) {
  if (_actionRecords.isNotEmpty) {
    _actionRecords[0] = ActionRecord(action: action);
  } else {
    addActionRecord(ActionRecord(action: action));
  }
}