passphrases method

  1. @override
Future<List<String>> passphrases(
  1. String userId
)
override

Implementation

@override
Future<List<String>> passphrases(String userId) async {
  List<Map<String, dynamic>> result = await database.query(
    TransactionsTable.name,
    columns: [TransactionsTable.passphrase],
    where: '${TransactionsTable.userid} = ?',
    whereArgs: [userId],
  );
  return result
      .map((e) => e[TransactionsTable.passphrase])
      .whereType<String>()
      .toList();
}