generateChildClasses property

bool generateChildClasses
final

Configure to generate child classes or not.

If set to true then a data class will be generated for every CustomType child.

Example:

Given this class containing a TypeMember with data type SomethingElse:

@squint
class Something {
  const Something({
    required this.y,
  });

  final SomethingElse y;
}

Will generate a data class if generateChildClasses is set to true:

@squint
class SomethingElse {
  const SomethingElse({
    ... code omitted for brevity
  });

}

If set to false then only the parent class will be generated.

Implementation

final bool generateChildClasses;