StringLength class

Annotation that indicates the field to which it is applied to has a length that ranges from minLength to maxLength

Nullable strings may be null and still pass a minimum length validation. To validate that a null string has a v

Constructors

StringLength({int? minLength, int? maxLength})
const

Properties

hashCode int
The hash code for this object.
no setterinherited
maxLength int?
The maximum length of the string
final
minLength int?
The minimum length of the string
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

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