copyWith method
NmOperatorCommand
copyWith({
- String? id,
- NmCommandPurpose? purpose,
- String? name,
- String? description,
- bool? enabled,
- List<
NmCommandParameter> ? parameters, - List<
NmCommandOperation> ? operations,
Copy with.
Implementation
NmOperatorCommand copyWith({
String? id,
NmCommandPurpose? purpose,
String? name,
String? description,
bool? enabled,
List<NmCommandParameter>? parameters,
List<NmCommandOperation>? operations,
}) => NmOperatorCommand(
id: id ?? this.id,
purpose: purpose ?? this.purpose,
name: name ?? this.name,
description: description ?? this.description,
enabled: enabled ?? this.enabled,
parameters: parameters ?? this.parameters,
operations: operations ?? this.operations,
);