getDefaultForField method

dynamic getDefaultForField(
  1. int tagNumber
)
inherited

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

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