DateConfig class

Global configuration for date/time operations

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 Properties

customDateFormatPattern String?
Custom date format pattern for default formatting
getter/setter pair
customTimeFormatPattern String?
Custom time format pattern for default formatting
getter/setter pair
defaultLocale String
Default locale for formatting operations
getter/setter pair
enableCaching bool
Whether to cache formatted results for performance
getter/setter pair
firstDayOfWeek int
First day of the week (1 = Monday, 7 = Sunday)
getter/setter pair
includeMilliseconds bool
Whether to include milliseconds in time formatting by default
getter/setter pair
includeSeconds bool
Whether to include seconds in time formatting by default
getter/setter pair
maxCacheSize int
Maximum cache size for formatted results
getter/setter pair
relativeTimeThresholdDays int
Threshold in days for using relative time
getter/setter pair
throwOnInvalidDate bool
Whether to throw exceptions on invalid dates
getter/setter pair
use12HourFormat bool
Whether to use 12-hour format by default for time formatting
getter/setter pair
useOrdinalSuffixes bool
Whether to use ordinal suffixes in English (1st, 2nd, 3rd, etc.)
getter/setter pair
useRelativeTimeForRecent bool
Whether to use relative time for recent dates
getter/setter pair
useSmartFormatting bool
Whether to use smart formatting by default
getter/setter pair

Static Methods

getSummary() Map<String, dynamic>
Gets a summary of the current configuration
reset() → void
Resets all configuration to default values
validate() List<String>
Validates the current configuration