first method

  1. @override
Future<T?> first()
override

Returns the first row only.

Implementation

@override
Future<T?> first() async {
  limit(1);
  final results = await get();
  return results.isNotEmpty ? results.first : null;
}