withTemplateValue method

LocalTimePattern withTemplateValue(
  1. LocalTime newTemplateValue
)

Creates a pattern like this one, but with the specified template value.

  • newTemplateValue: The template value for the new pattern, used to fill in unspecified fields.

Returns: A new pattern with the given template value.

Implementation

LocalTimePattern withTemplateValue(LocalTime newTemplateValue) =>
    _create(patternText, _formatInfo, newTemplateValue);