parsePattern method Null safety

List<_DateFormatField> parsePattern(
  1. String pattern
)

Parse the template pattern and return a list of field objects.

Implementation

List<_DateFormatField> parsePattern(String pattern) {
  return _parsePatternHelper(pattern).reversed.toList();
}