copyWith method
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
);
}