getCountByUpId abstract method

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

Implementation

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