findById method

Future<SongData?> findById(
  1. int songId
)

Implementation

Future<SongData?> findById(int songId) async {
  return await (db.select(
    db.song,
  )..where((e) => e.id.equals(songId))).getSingleOrNull();
}