limitToLast method

  1. @override
Query<T> limitToLast(
  1. int? limit
)
override

Creates and returns a new Query that only returns the last matching documents.

You must specify at least one orderBy clause for limitToLast queries, otherwise an exception will be thrown during execution.

Implementation

@override
_i2.Query<T> limitToLast(int? limit) =>
    (super.noSuchMethod(Invocation.method(#limitToLast, [limit]), returnValue: _FakeQuery<T>()) as _i2.Query<T>);