findById method

Future<CustomerData?> findById(
  1. int customerId
)

Implementation

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