withZoneProvider method
Creates a pattern for the same original pattern text as this pattern, but with the specified time zone provider.
If newZoneProvider
is null, the resulting pattern can be used for formatting
but not parsing.
newZoneProvider
: The new time zone provider to use.
Returns: A new pattern with the given time zone provider.
Implementation
ZonedDateTimePattern withZoneProvider(DateTimeZoneProvider? newZoneProvider) =>
newZoneProvider == zoneProvider ? this : _create(patternText, _formatInfo, resolver, newZoneProvider, templateValue);