action property

Action? action

get the first action if it exists

Implementation

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

Implementation

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