allowUndefined method

ObjectSchema allowUndefined(
  1. bool value
)
inherited

Sets flag to allow undefined properties

This method returns reference to this exception to implement Builder pattern to chain additional calls.

  • value true to allow undefined properties and false to disallow. Returns this validation schema.

Implementation

ObjectSchema allowUndefined(bool value) {
  isUndefinedAllowed = value;
  return this;
}