overrideWith method
Returns a new set of options with keys from other overriding options in
this instance.
Config values are overridden at a per-key granularity. There is no value
level merging. other may be null, in which case this instance is
returned directly.
The isRoot value will also be overridden to value from other.
Implementation
BuilderOptions overrideWith(BuilderOptions? other) {
if (other == null) return this;
return BuilderOptions(<String, dynamic>{...config, ...other.config});
}