autoCreateNestedBuilders property

bool autoCreateNestedBuilders
final

Whether to auto create nested builders. Defaults to true.

When this is enabled, accessing a nested builder via a getter causes it to be instantiated if it's null. In most cases this is convenient, but if you are using builders for data processing then you might need to check for null. If so you should set this to false.

Implementation

final bool autoCreateNestedBuilders;