limit method

  1. @override
Future<List<T>> limit(
  1. int limit
)
override

Get up to the maximum number of documents specified by the limit

Returns 0 to limit

Implementation

@override
Future<List<T>> limit(int limit) async {
  final snapshot = await ref.limit(limit).get();

  return snapshot.docs.toListT();
}