first method

Future<T?> first()

---------- FIRST ----------

Implementation

Future<T?> first() async {
  limit(1);
  final list = await get();
  return list.isEmpty ? null : list.first;
}