copyWith method
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,
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,
);