JsonDate class

A class representing a JSON date field.

This class extends JsonField to handle DateTime values, providing methods for setting and getting values, formatting dates, and converting to JSON.

Inheritance

Constructors

JsonDate(String fieldName)
Constructs an instance of JsonDate.

Properties

error String?
Error message associated with the field.
getter/setter pairinherited
fieldName String
The name of the field.
finalinherited
hasError bool
Checks if the field has an error.
no setterinherited
hashCode int
Overrides the hash code.
no setterinherited
hasInformation bool
Checks if the field has informational message.
no setterinherited
hasWarning bool
Checks if the field has a warning.
no setterinherited
information String?
Informational message associated with the field.
getter/setter pairinherited
rawValue DateTime?
The raw value of the field.
getter/setter pairinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value DateTime
Gets the value of the JSON date field.
getter/setter pairoverride
warning String?
Warning message associated with the field.
getter/setter pairinherited

Methods

format({String dateFormat = DateTimeFormatsVN.dateOnly}) String
Formats the date value according to the specified date format.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJSON() String?
Converts the date value to JSON.
override
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
Overrides the equality operator.
inherited