withPatternText method

OffsetTimePattern withPatternText(
  1. String patternText
)

Creates a pattern for the same original localization information as this pattern, but with the specified pattern text.

  • patternText: The pattern text to use in the new pattern.

Returns: A new pattern with the given pattern text.

Implementation

OffsetTimePattern withPatternText(String patternText) =>
    _create(patternText, _formatInfo, templateValue);