Config constructor

Config({
  1. bool useWellKnownWrappers = false,
  2. bool useWellKnownDuration = false,
  3. bool useWellKnownTimestamp = false,
  4. bool useProtoFieldNamingConventions = true,
  5. String packageName = '',
  6. List<String> options = const [],
  7. String prefix = 'G',
  8. String wellKnownDurationType = r'$Duration',
  9. String wellKnownTimestampType = r'$Timestamp',
  10. IntPrecision defaultIntPrecision = IntPrecision.int32,
  11. DecimalEncoding decimalEncoding = DecimalEncoding.binary,
  12. String outProtoPath = 'proto/model.proto',
})

Implementation

Config({
  this.useWellKnownWrappers = false,
  this.useWellKnownDuration = false,
  this.useWellKnownTimestamp = false,
  this.useProtoFieldNamingConventions = true,
  this.packageName = '',
  this.options = const [],
  this.prefix = 'G',
  this.wellKnownDurationType = r'$Duration',
  this.wellKnownTimestampType = r'$Timestamp',
  this.defaultIntPrecision = IntPrecision.int32,
  this.decimalEncoding = DecimalEncoding.binary,
  this.outProtoPath = 'proto/model.proto',
});