isOptional property

bool isOptional
final

Marks the validator as optional. This means that if the value being checked is null or missing, the validation is considered valid.

Implementation

final bool isOptional;