copyWith function

Builder copyWith(
  1. BuilderOptions config
)

Supports package:build_runner creation and configuration of copy_with_extension_gen.

Not meant to be invoked by hand-authored code.

Implementation

Builder copyWith(BuilderOptions config) {
  return SharedPartBuilder(
    [CopyWithGenerator(Settings.fromConfig(config.config))],
    'copyWith',
  );
}