count method

Future<int> count({
  1. bool distinct = true,
})

Return the count of rows matched by the built statement When counting rows, the query will only count distinct rows by default

Implementation

Future<int> count({bool distinct = true}) {
  return $state.copyWith(distinct: distinct).count();
}