copyWith method

NmCommandSet copyWith({
  1. String? id,
  2. String? name,
  3. String? operatorName,
  4. String? countryCode,
  5. String? countryName,
  6. String? region,
  7. bool clearRegion = false,
  8. NmCommandSetKind? kind,
  9. List<NmOperatorCommand>? commands,
  10. List<NmResponseRule>? responseRules,
  11. List<String>? usedByPlanIds,
})

Copy with.

Implementation

NmCommandSet copyWith({
  String? id,
  String? name,
  String? operatorName,
  String? countryCode,
  String? countryName,
  String? region,
  bool clearRegion = false,
  NmCommandSetKind? kind,
  List<NmOperatorCommand>? commands,
  List<NmResponseRule>? responseRules,
  List<String>? usedByPlanIds,
}) => NmCommandSet(
  id: id ?? this.id,
  name: name ?? this.name,
  operatorName: operatorName ?? this.operatorName,
  countryCode: countryCode ?? this.countryCode,
  countryName: countryName ?? this.countryName,
  region: clearRegion ? null : region ?? this.region,
  kind: kind ?? this.kind,
  commands: commands ?? this.commands,
  responseRules: responseRules ?? this.responseRules,
  usedByPlanIds: usedByPlanIds ?? this.usedByPlanIds,
);