addGroup method

void addGroup(
  1. KdbxGroup group
)

Implementation

void addGroup(KdbxGroup group) {
  if (group.parent != this) {
    throw StateError(
        'Invalid operation. Trying to add group which is already in another group.');
  }
  modify(() => _groups.add(group));
}