copyWith method
Creates a copy of this object but replacing the old values with the new values, if any.
Implementation
MessageLog copyWith({
String? id,
String? message,
Map<String, dynamic>? data,
}) =>
MessageLog(
id: id ?? this.id,
message: message ?? this.message,
data: data ?? this.data,
);