DateTimeFormatOptions class

DateTime formatting functionality of the browser.

Constructors

DateTimeFormatOptions({DateFormatStyle? dateFormatStyle, TimeFormatStyle? timeFormatStyle, Calendar? calendar, DayPeriod? dayPeriod, NumberingSystem? numberingSystem, String? timeZone, ClockStyle? clockstyle, WeekDayStyle? weekday, EraStyle? era, TimeStyle? year, MonthStyle? month, TimeStyle? day, TimeStyle? hour, TimeStyle? minute, TimeStyle? second, int? fractionalSecondDigits, TimeZoneName? timeZoneName, FormatMatcher formatMatcher = FormatMatcher.bestfit, LocaleMatcher localeMatcher = LocaleMatcher.bestfit})
const

Properties

calendar Calendar?
final
clockstyle ClockStyle?
Whether to use a 12- or 24-hour style clock.
final
dateFormatStyle DateFormatStyle?
The date formatting style.
final
day TimeStyle?
final
dayPeriod DayPeriod?
The formatting style used for day periods - only used when the clockstyle parameter is true.
final
era EraStyle?
final
formatMatcher FormatMatcher
final
fractionalSecondDigits int?
The number of digits used to represent fractions of a second.
final
hashCode int
The hash code for this object.
no setterinherited
hour TimeStyle?
final
localeMatcher LocaleMatcher
final
minute TimeStyle?
final
month MonthStyle?
final
numberingSystem NumberingSystem?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
second TimeStyle?
final
timeFormatStyle TimeFormatStyle?
The time formatting style.
final
timeZone String?
final
timeZoneName TimeZoneName?
The localized representation of the time zone name.
final
weekday WeekDayStyle?
final
year TimeStyle?
final

Methods

copyWith({DateFormatStyle? dateFormatStyle, TimeFormatStyle? timeFormatStyle, Calendar? calendar, DayPeriod? dayPeriod, NumberingSystem? numberingSystem, String? timeZone, ClockStyle? clockstyle, WeekDayStyle? weekday, EraStyle? era, TimeStyle? year, MonthStyle? month, TimeStyle? day, TimeStyle? hour, TimeStyle? minute, TimeStyle? second, int? fractionalSecondDigits, TimeZoneName? timeZoneName, FormatMatcher? formatMatcher, LocaleMatcher? localeMatcher}) DateTimeFormatOptions
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