withKwargs method

DockerContainer withKwargs(
  1. Map<String, Object?> kwargs
)

Merges kwargs into the extra Docker HostConfig fields.

Existing keys are overwritten; keys not present in kwargs are preserved. Keys use Dart camelCase or snake_case naming and are automatically converted to PascalCase Docker API keys. Known conversions: 'privileged''Privileged', 'auto_remove'/'autoRemove''AutoRemove', 'platform''Platform'. All other keys have only their first character upper-cased.

Returns this for chaining.

Implementation

DockerContainer withKwargs(Map<String, Object?> kwargs) {
  _kwargs = {..._kwargs, ...kwargs};
  return this;
}