getCount abstract method

  1. @Query.new('''SELECT count(*) FROM Product WHERE status = 1''')
Future<int?> getCount()

Implementation

@Query('''SELECT count(*) FROM Product WHERE status = 1''')
Future<int?> getCount();