findByCode method
Implementation
Future<CouponData?> findByCode(String code) async {
return await (db.select(
db.coupon,
)..where((e) => e.code.equals(code))).getSingleOrNull();
}
Future<CouponData?> findByCode(String code) async {
return await (db.select(
db.coupon,
)..where((e) => e.code.equals(code))).getSingleOrNull();
}