cloneSet method
Clone set.
Implementation
NmCommandValidationResult cloneSet(
String sourceId, {
required String id,
required String name,
required String operator,
required String countryCode,
required String countryName,
String? region,
required NmTelecomL10n l10n,
}) {
final source = repository.byId(sourceId)!;
return _create(
source.copyWith(
id: id,
name: name,
operatorName: operator,
countryCode: countryCode,
countryName: countryName,
region: region,
clearRegion: region == null || region.isEmpty,
kind: NmCommandSetKind.operator,
usedByPlanIds: const [],
),
l10n,
);
}