withTemplateValue method

OffsetDateTimePattern withTemplateValue(
  1. OffsetDateTime newTemplateValue
)

Creates a pattern for the same original pattern text and culture as this pattern, but with the specified template value.

  • newTemplateValue: The template value to use in the new pattern.

Returns: A new pattern with the given template value.

Implementation

OffsetDateTimePattern withTemplateValue(OffsetDateTime newTemplateValue) =>
    _create(patternText, _formatInfo, newTemplateValue);