DateFormatterBuilder class

Builder for creating custom date/time formatters

Constructors

DateFormatterBuilder()

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

build() String Function(DateTime)
Builds the formatter function
customDatePattern(String pattern) DateFormatterBuilder
Sets a custom date pattern
dateFormat(DateFormatStyle style) DateFormatterBuilder
Sets the date format style
excludeDate() DateFormatterBuilder
Excludes date from the format
excludeTime() DateFormatterBuilder
Excludes time from the format
includeDate() DateFormatterBuilder
Includes date in the format
includeTime() DateFormatterBuilder
Includes time in the format
locale(String locale) DateFormatterBuilder
Sets the locale for formatting
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
timeFormat(TimeFormatStyle style) DateFormatterBuilder
Sets the time format style
toString() String
A string representation of this object.
inherited

Operators

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