findOrAdd method

int findOrAdd(
  1. CustomNumFormat format
)

Implementation

int findOrAdd(CustomNumFormat format) {
  var fmtId = _inverseMap[format];
  if (fmtId != null) {
    return fmtId;
  }
  fmtId = _nextFmtId;
  _nextFmtId++;
  _map[fmtId] = format;
  return fmtId;
}