passphrase method

  1. @override
Future<String?> passphrase(
  1. String licenseId
)
override

Implementation

@override
Future<String?> passphrase(String licenseId) async {
  List<Map<String, dynamic>> result = await database.query(
    TransactionsTable.name,
    columns: [TransactionsTable.passphrase],
    where: '${TransactionsTable.origin} = ?',
    whereArgs: [licenseId],
  );
  return (result.isNotEmpty)
      ? result.first[TransactionsTable.passphrase]
      : Future.value(null);
}