defineValueReader method

void defineValueReader(
  1. int tag,
  2. ValueReaderFunc func
)

Implementation

void defineValueReader(int tag, ValueReaderFunc func) {
  if (_valueReaderMap.containsKey(tag)) {
    throw ArgumentError("A function with tag $tag has already been defined");
  }
  _valueReaderMap[tag] = func;
}