NumberFormat constructor
NumberFormat({})
Implementation
factory NumberFormat({
$core.String? pattern,
$core.String? format,
$core.Iterable<$core.String>? leadingDigitsPattern,
$core.String? nationalPrefixFormattingRule,
$core.String? domesticCarrierCodeFormattingRule,
$core.bool? nationalPrefixOptionalWhenFormatting,
}) {
final result = create();
if (pattern != null) result.pattern = pattern;
if (format != null) result.format = format;
if (leadingDigitsPattern != null)
result.leadingDigitsPattern.addAll(leadingDigitsPattern);
if (nationalPrefixFormattingRule != null)
result.nationalPrefixFormattingRule = nationalPrefixFormattingRule;
if (domesticCarrierCodeFormattingRule != null)
result.domesticCarrierCodeFormattingRule =
domesticCarrierCodeFormattingRule;
if (nationalPrefixOptionalWhenFormatting != null)
result.nationalPrefixOptionalWhenFormatting =
nationalPrefixOptionalWhenFormatting;
return result;
}