includeCustomTypeImports property

bool includeCustomTypeImports
final

Configure to add import statements for each TypeMember CustomType/EnumType.

Will be overridden to false if generateChildClasses is set to true.

If set to true then import statements will be added for each CustomType and/or EnumType.

Example:

Given this class containing a TypeMember with data type SomethingElse:

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

  final SomethingElse y;
}

Will add an import statement if includeCustomTypeImports is set to true:

import 'something_else_dataclass.dart';

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

Implementation

final bool includeCustomTypeImports;