copyWith method

EditorMessage copyWith({
  1. String? key,
  2. String? type,
  3. String? method,
  4. String? payload,
})

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,
  );
}