withTemplateValue method

OffsetTimePattern withTemplateValue(
  1. OffsetTime 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

OffsetTimePattern withTemplateValue(OffsetTime newTemplateValue) =>
    _create(patternText, _formatInfo, newTemplateValue);