Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- 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
Static Methods
-
dateValidator(
String? value, {String? pattern = "yyyy-MM-dd", String? errorMessage}) → String? - validator for date pattern
-
hasMatch(
{String? value, required Pattern pattern}) → bool -
returns true if the value matches the pattern
if
value
is null, it returns falsepattern
must not be null -
isDateStringValid(
String? value, {String? pattern = "yyyy-MM-dd"}) → bool -
returns true if the date String matches the pattern
if
pattern
null, the dateformat pattern defaults to "yyyy-MM-dd" -
validator(
{String? value, required Pattern pattern, String? errorMessage}) → String? - validator for all text and string values