FieldInfo<T> constructor

FieldInfo<T>(
  1. String name,
  2. int tagNumber,
  3. int? index,
  4. int type, {
  5. dynamic defaultOrMaker,
  6. CreateBuilderFunc? subBuilder,
  7. ValueOfFunc? valueOf,
  8. List<ProtobufEnum>? enumValues,
  9. ProtobufEnum? defaultEnumValue,
  10. String? protoName,
})

Implementation

FieldInfo(this.name, this.tagNumber, this.index, this.type,
    {dynamic defaultOrMaker,
    this.subBuilder,
    this.valueOf,
    this.enumValues,
    this.defaultEnumValue,
    String? protoName})
    : makeDefault = findMakeDefault(type, defaultOrMaker),
      check = null,
      _protoName = protoName,
      assert(type != 0),
      assert(!_isGroupOrMessage(type) ||
          subBuilder != null ||
          _isMapField(type)),
      assert(!_isEnum(type) || valueOf != null);