Skip to content

Commit 0c88af7

Browse files
authored
first: Correct return type
Fixes #661
1 parent f40cb52 commit 0c88af7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/dart/lib/src/network/parse_query.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -536,7 +536,7 @@ class QueryBuilder<T extends ParseObject> {
536536

537537
/// Find the first object that satisfies the query.
538538
/// Returns null, if no object is found.
539-
Future<T>? first() async {
539+
Future<T?> first() async {
540540
ParseResponse parseResponse =
541541
await (QueryBuilder.copy(this)..setLimit(1)).query();
542542
if (parseResponse.success) {

0 commit comments

Comments
 (0)