copyWith method
Implementation
EditorMessage copyWith({
String? key,
String? type,
String? method,
String? payload,
}) {
return EditorMessage(
key: key ?? this.key,
type: type ?? this.type,
method: method ?? this.method,
payload: payload ?? this.payload,
);
}