first property

  1. @override
Future<T?> get first
override

first gets the first entry on database

Implementation

@override
Future<T?> get first async {
  return limit(1).toList().then((value) => value.firstOrNull);
}