DateTimeFormat class abstract final

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

defaultDateFormat([Locale? locale]) → DateFormatPreference
defaultTimeFormat(BuildContext context) → TimeFormatPreference
defaultTimeFormatForLocale(Locale locale) → TimeFormatPreference
formatDate(BuildContext context, DateTime date, {DateFormatPreference? preference}) → String
formatDateForLocale(Locale locale, DateTime date, {DateFormatPreference? preference}) → String
formatDateTime(BuildContext context, DateTime dateTime, {DateFormatPreference? datePreference, TimeFormatPreference? timePreference}) → String
formatDateTimeForLocale(Locale locale, DateTime dateTime, {DateFormatPreference? datePreference, TimeFormatPreference? timePreference, bool? use24HourFormat}) → String
formatTime(BuildContext context, TimeOfDay time, {TimeFormatPreference? preference}) → String
formatTimeForLocale(Locale locale, TimeOfDay time, {TimeFormatPreference? preference, bool? use24HourFormat}) → String