getDartMapKeyType method

String getDartMapKeyType()

Only for map fields: returns the type to use for Dart map field key type.

Implementation

String getDartMapKeyType() {
  assert(isMapField);
  return (baseType.generator as MessageGenerator).fieldList[0].baseType
      .getDartType(parent.fileGen!);
}