GroupRule class
GroupRule Class: Group together and validate the basic rules . Refer https://github.com/ganeshrvel/pub-rules/blob/master/README.md#2-grouprule for usage details
Constructors
Properties
-
customErrors
→ Map<
String, String> ? -
final
- customErrorText → String?
-
final
- error → String?
-
outputs the error text (string)
no setter
- hasError → bool
-
outputs true if there is a validation error else false
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- maxAllowed → int?
-
final
- name → String
-
final
- requiredAll → bool?
-
final
- requiredAtleast → int?
-
final
-
rulesList
→ List<
Rule?> -
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
copyWith(
{String? name, bool? requiredAll, int? requiredAtleast, int? maxAllowed, String? customErrorText, Map< String, String> ? customErrors}) → GroupRule -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited