findById method
Implementation
Future<ProductData?> findById(int productId) async {
return await (db.select(
db.product,
)..where((e) => e.id.equals(productId))).getSingleOrNull();
}
Future<ProductData?> findById(int productId) async {
return await (db.select(
db.product,
)..where((e) => e.id.equals(productId))).getSingleOrNull();
}