copyWith method

LogMessage copyWith({
  1. LogLevel? level,
  2. String? text,
  3. String? file,
  4. int? line,
})

Implementation

LogMessage copyWith({
  LogLevel? level,
  String? text,
  String? file,
  int? line
}) {
  return LogMessage(
    level: level ?? this.level,
    text: text ?? this.text,
    file: file ?? this.file,
    line: line ?? this.line
  );
}