withTemplateValue method

LocalDatePattern withTemplateValue(
  1. LocalDate 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

LocalDatePattern withTemplateValue(LocalDate newTemplateValue) => _create(patternText, _formatInfo, newTemplateValue);