parsePattern method

List<_DateFormatField> parsePattern (String pattern)

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

Implementation

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