removeBinary method

void removeBinary(
  1. KdbxKey binaryKey
)

Implementation

void removeBinary(KdbxKey binaryKey) {
  modify(() {
    final binary = _binaries.remove(binaryKey);
    if (binary == null) {
      throw StateError(
          'Trying to remove binary key $binaryKey does not exist.');
    }
    // binary will not be removed (yet) from file, because it will
    // be referenced in history.
  });
}