readType method

ManifestType readType()

read non-null or nullable type. for example: double or double?.

Implementation

ManifestType readType() {
  check(isExternalTypeName());
  return endsWith('?')
      ? ManifestType(name: substring(0, length - 1), isNullable: true)
      : ManifestType(name: this, isNullable: false);
}