willFindObjectWithQuery method Null safety
- Query<
InstanceType> ? query
Executed prior to a fetch by ID query.
You may modify the query
prior to its execution in this method. The query
will have a single matcher, where the InstanceType
's primary key
is equal to the first path argument in the Request. You may also return a new Query
,
but it must have the same InstanceType
as this controller. If you return null from this method, no Query
will be executed
and didNotFindObject will immediately be called.
Implementation
FutureOr<Query<InstanceType>?> willFindObjectWithQuery(
Query<InstanceType>? query,
) {
return query;
}