findById method

Future<ProjectData?> findById(
  1. int projectId
)

Implementation

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