willDeleteObjectWithQuery method Null safety

FutureOr<Query<InstanceType>?> willDeleteObjectWithQuery(
  1. Query<InstanceType>? query
)

Executed prior to a delete query being executed.

You may modify the query prior to its execution in this method. You may also return a new Query, but it must have the same type argument as this controller. If you return null from this method, no delete operation will be performed and didNotFindObjectToDeleteWithID will immediately be called with the value null.

Implementation

FutureOr<Query<InstanceType>?> willDeleteObjectWithQuery(
    Query<InstanceType>? query) {
  return query;
}