exists method

Future<bool> exists()

Returns true when at least one row matches the current conditions.

Implementation

Future<bool> exists() async {
  final savedLimit = _limit;
  final savedOffset = _offset;
  _limit = 1;
  _offset = null;
  try {
    return (await get()).isNotEmpty;
  } finally {
    _limit = savedLimit;
    _offset = savedOffset;
  }
}