DateFormatterPresets class
Pre-built formatter configurations
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
-
custom(
String pattern, [String locale = 'en_US']) → String Function(DateTime) - Creates a formatter for custom pattern
-
fullDateWith24HourTime(
[String locale = 'en_US']) → String Function(DateTime) - Creates a formatter for full date with 24-hour time
-
longDateWithTime(
[String locale = 'en_US']) → String Function(DateTime) - Creates a formatter for long date with time
-
shortDate(
[String locale = 'en_US']) → String Function(DateTime) - Creates a formatter for short date only