merge method
Returns a new DateOptions that prefers other's non-null settings.
Implementation
DateOptions merge(DateOptions other) => DateOptions(
defaultFormat: other.defaultFormat ?? defaultFormat,
locale: other.locale ?? locale,
utc: other.utc,
autoDetectFormat: other.autoDetectFormat,
useCurrentLocale: other.useCurrentLocale,
extraAutoDetectPatterns: other.extraAutoDetectPatterns.isNotEmpty
? other.extraAutoDetectPatterns
: extraAutoDetectPatterns,
);