copyWith method

NmOperatorCommand copyWith({
  1. String? id,
  2. NmCommandPurpose? purpose,
  3. String? name,
  4. String? description,
  5. bool? enabled,
  6. List<NmCommandParameter>? parameters,
  7. 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,
);