getItemLike method Null safety

Future<Map<String, dynamic>?> getItemLike(
  1. String key
)

Implementation

Future<Map<String, dynamic>?> getItemLike(String key) async {
  final Database db = await _databaseFuture;
  final List<Map<String, dynamic>> queryResult =
      await db.query(_table, where: 'key like ?', whereArgs: [key]);
  return _processQueryResult(key, queryResult, db);
}