FluentDateTimeOptions class final

Options accepted by FluentDateTime and the DATETIME() builtin.

Every field is nullable so partial overrides compose cleanly via merge. The locale-aware adapter translates this option bag into its underlying date/time formatter.

Annotations
  • @immutable

Constructors

FluentDateTimeOptions({String? dateStyle, String? timeStyle, String? weekday, String? era, String? dayPeriod, String? timeZoneName, String? year, String? month, String? day, String? hour, String? minute, String? second, int? fractionalSecondDigits, bool? hour12, String? hourCycle, String? timeZone, String? calendar, String? numberingSystem})
Bundles the ECMA-402 DATETIME option surface; every field nullable, null meaning "not requested".
const

Properties

calendar String?
Calendar identifier ('gregory', 'islamic', …).
final
dateStyle String?
'full', 'long', 'medium', 'short'.
final
day String?
ECMA day: numeric / 2-digit.
final
dayPeriod String?
ECMA dayPeriod: long / short / narrow.
final
era String?
ECMA era: long / short / narrow.
final
fractionalSecondDigits int?
Number of fractional second digits (0-3).
final
hashCode int
The hash code for this object.
no setterinherited
hour String?
ECMA hour: numeric / 2-digit.
final
hour12 bool?
Whether to use 12-hour clock.
final
hourCycle String?
'h11', 'h12', 'h23', 'h24'. Finer-grained than hour12; when both are set, hourCycle wins.
final
isEmpty bool
True when no option is set.
no setter
minute String?
ECMA minute: numeric / 2-digit.
final
month String?
ECMA month: numeric / 2-digit / long / short / narrow.
final
numberingSystem String?
Numbering system identifier ('latn', 'arab', …).
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
second String?
ECMA second: numeric / 2-digit.
final
timeStyle String?
ECMA timeStyle: full / long / medium / short.
final
timeZone String?
IANA timezone identifier (e.g. 'Europe/Berlin').
final
timeZoneName String?
ECMA timeZoneName: long / short / shortOffset / longOffset / shortGeneric / longGeneric.
final
weekday String?
'narrow', 'short', 'long'.
final
year String?
'numeric' or '2-digit' (and for month: also 'narrow', 'short', 'long').
final

Methods

merge(FluentDateTimeOptions other) FluentDateTimeOptions
Merge, other's non-null fields winning.
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