DateTimePatternToken class abstract

DateTime pattern token.

The DateTimePatternTokenizer class returns a list of tokens.

Constructors

DateTimePatternToken.formatter(DateTimeFormatter formatter)
Create a new DateTimePatternToken instance from the given DateTimeFormatter
const
factory
DateTimePatternToken.remove()
Create a new DateTimePatternToken instance for removing.
const
factory
DateTimePatternToken.string(String value)
Create a new DateTimePatternToken instance from the given String
const
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value String
Returns a string representation of this object.
no setter

Methods

format(DateTime date) String
Format the given date and return the formatted string.
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