getDefaultForField method

dynamic getDefaultForField (int tagNumber)

Returns the default value for the given field.

For repeated fields, returns an immutable empty list (unlike getField). For all other fields, returns the same thing that getField() would for a cleared field.

Implementation

getDefaultForField(int tagNumber) =>
    _fieldSet._ensureInfo(tagNumber).readonlyDefault;