findOrCreateFormat method

int findOrCreateFormat(
  1. String? formatString
)

Searches for format with specified format string and creates one if a match is not found.

Implementation

int findOrCreateFormat(String? formatString) {
  return _hashFormatStrings.containsKey(formatString)
      ? _hashFormatStrings[formatString]!.index
      : createFormat(formatString);
}