copyWith method
Implementation
RegistrationStep copyWith({
String? id,
String? fieldKey,
String? path,
bool? selected,
}) {
return RegistrationStep(
id: id ?? this.id,
fieldKey: fieldKey ?? this.fieldKey,
path: path ?? this.path,
selected: selected ?? this.selected,
);
}