copyWith method

LogRequest copyWith({
  1. LogEvent? event,
  2. SLogChannel? channel,
})

Creates a copy of the current request with new data.

Implementation

LogRequest copyWith({
  LogEvent? event,
  SLogChannel? channel,
}) =>
    LogRequest(
      event ?? this.event,
      channel: channel ?? this.channel,
    );