copyWith method

Log copyWith({
  1. String? message,
  2. Level? level,
  3. DateTime? time,
  4. Object? error,
  5. StackTrace? stackTrace,
})

Implementation

Log copyWith({
  String? message,
  Level? level,
  DateTime? time,
  Object? error,
  StackTrace? stackTrace,
}) {
  return Log(
    message: message ?? this.message,
    level: level ?? this.level,
    time: time ?? this.time,
    error: error ?? this.error,
    stackTrace: stackTrace ?? this.stackTrace,
  );
}