DateTimeFormatOptions class

DateTime formatting functionality of the browser.

Constructors

DateTimeFormatOptions.new({Calendar? calendar, DayPeriod? dayPeriod, NumberingSystem? numberingSystem, ClockStyle? clockstyle, EraStyle? era, TimeStyle? timestyle, int? fractionalSecondDigits, FormatMatcher formatMatcher = FormatMatcher.bestfit})
const

Properties

calendar Calendar?
final
clockstyle ClockStyle?
Whether to use a 12- or 24-hour style clock.
final
dayPeriod DayPeriod?
The formatting style used for day periods - only used when the clockstyle parameter is true.
final
era EraStyle?
final
formatMatcher FormatMatcher
The localized representation of the time zone name.
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
numberingSystem NumberingSystem?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
timestyle TimeStyle?
final

Methods

copyWith({Calendar? calendar, DayPeriod? dayPeriod, NumberingSystem? numberingSystem, ClockStyle? clockstyle, WeekDayStyle? weekday, EraStyle? era, TimeStyle? timestyle, int? fractionalSecondDigits, FormatMatcher? formatMatcher}) 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