isMapField property
bool
get
isMapField
Whether this field is a map field definition:
map<key_type, value_type> map_field = N
.
Implementation
bool get isMapField {
if (!isRepeated || !baseType.isMessage) return false;
final generator = baseType.generator as MessageGenerator;
return generator._descriptor.options.mapEntry;
}