ClassValidator class
An annotation used to specify a class to generate code for.
- Annotations
-
- @Target({TargetKind.classType})
Constructors
- ClassValidator.new({bool stopWhenFirstError = true, NamingConvention namingConvention = NamingConvention.camelCase})
-
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- namingConvention → NamingConvention
-
Specifies naming convention for
validator function on each field & instance. Default value is
camelCase
final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- stopWhenFirstError → bool
-
if
true
, it will stop when first error occured and only take the first error.final -
toJson
→ Map<
String, dynamic> -
no setter
Methods
-
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