DateTimeFormatter<T extends DateTime?> class

Process format DateTime

Inheritance

Constructors

DateTimeFormatter({DateTimeFormatterType type = DateTimeFormatterType.date, String? locale})
Create a date/time text input

Properties

hashCode int
The hash code for this object.
no setterinherited
locale String?
Current Locale use to format
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type DateTimeFormatterType
Type mask typing
final

Methods

format(T value) String
Format value to text
override
formatEditUpdate(TextEditingValue oldValue, TextEditingValue newValue) TextEditingValue
Called when text is being typed or cut/copy/pasted in the EditableText.
override
isValid(String text) bool
Check current text is valid to parse or not
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
parse(String text) → T
Parser text to value
override
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited