copyWith method

Log copyWith({
  1. String? message,
  2. Object? data,
  3. DateTime? timestamp,
})

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