PRuleOnlyOneField class
- Implemented types
Constructors
-
PRuleOnlyOneField(List<
String?> _values, {String message = "Only one field is allowed"}) -
Check if only one field has a value
values
is the values to check message is the error message
Properties
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
validate(
) → String? -
Validate the value
Return null if the value is valid
Return the error message if the value is invalid
Return null if the value is empty
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited