copyWith method
Creates a copy of the current log with new data.
Implementation
Log copyWith({
String? message,
Object? data,
DateTime? timestamp,
}) =>
Log(
message: message ?? this.message,
data: data ?? this.data,
timestamp: timestamp ?? this.timestamp,
);