PRuleSizeString class

Implemented types

Constructors

PRuleSizeString(String? _value, int size, {String message = "Size must be"})
Check if the value size is equal to the size value value is the value to check size is the size of value message is the error message

Properties

hashCode int
The hash code for this object.
no setterinherited
message String
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
size int
final

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