DartGeneratorOptions constructor

const DartGeneratorOptions({
  1. String insertBeforeClass(
    1. String name
    ) = _newline,
  2. String fieldName(
    1. String propertyName
    ) = toCamelCase,
  3. String className(
    1. String className
    ) = toPascalCase,
  4. String insertBeforeField(
    1. String name,
    2. Property<Object?> property
    )? = _finalField,
  5. String insertBeforeConstructor()? = _const,
  6. String insertBeforeConstructorArg(
    1. String name,
    2. Property<Object?> property
    )?,
  7. List<DartMethodGenerator> methodGenerators = defaultMethodGenerators,
  8. bool encodeNulls = false,
})

Implementation

const DartGeneratorOptions({
  this.insertBeforeClass = _newline,
  this.fieldName = toCamelCase,
  this.className = toPascalCase,
  this.insertBeforeField = _finalField,
  this.insertBeforeConstructor = _const,
  this.insertBeforeConstructorArg,
  this.methodGenerators = defaultMethodGenerators,
  this.encodeNulls = false,
});