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