initLocalDatabase static method

Future<LineupDatabase> initLocalDatabase(
  1. String databaseName, {
  2. int? version,
  3. LineupEncryptService? customEncryptService,
  4. String? encryptSecureKey,
  5. String? encryptExtraSecureKey,
})

Implementation

static Future<LineupDatabase> initLocalDatabase(
  String databaseName, {
  int? version,
  LineupEncryptService? customEncryptService,
  String? encryptSecureKey,
  String? encryptExtraSecureKey,
}) =>
    _databaseConnection.local(
      databaseName: databaseName,
      version: version,
      encrypt: customEncryptService ??
          EncryptServiceSample(
            encryptSecureKey ?? Key.fromSecureRandom(32).base64,
            encryptExtraSecureKey,
          ),
    );