validatePassword static method

void validatePassword(
  1. String password
)

Rejects the empty password, which SQLite3MultipleCiphers doesn't encrypt with.

Implementation

static void validatePassword(final String password) {
  if (password.isEmpty) {
    throw ArgumentError.value(
      password,
      'password',
      'An empty password would store the database unencrypted',
    );
  }
}