generationConfig function

GenerationConfig generationConfig(
  1. void init(
    1. GenerationConfigBuilder
    )
)

Helper method to construct a GenerationConfig in a DSL-like manner.

Implementation

GenerationConfig generationConfig(void Function(GenerationConfigBuilder) init) {
  var builder = GenerationConfigBuilder();
  init(builder);
  return builder.build();
}