constructDateFormat method

DateFormat constructDateFormat(
  1. Locale? locale, [
  2. String? newPattern
])

Construct DateFormat.new by given locale and newPattern.

Implementation

DateFormat constructDateFormat(Locale? locale, [String? newPattern]) {
  return DateFormat(newPattern, resolve(locale));
}