getCountByUpId abstract method
- @Query.new('''SELECT count(*) FROM measure_unit WHERE up_id = :upId and status = 1''')
- int upId
Implementation
@Query(
'''SELECT count(*) FROM measure_unit WHERE up_id = :upId and status = 1''')
Future<int?> getCountByUpId(int upId);