willInsertObjectWithQuery method Null safety

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

Executed prior to an insert 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 values will be inserted and didInsertObject will immediately be called with the value null.

Implementation

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