copyWith method

LogOptions copyWith({
  1. LogLevel? systemLevel,
  2. LogLevel? customLevel,
  3. Optional<LogSink?>? customSink,
})

Implementation

LogOptions copyWith({
  LogLevel? systemLevel,
  LogLevel? customLevel,
  Optional<LogSink?>? customSink
}) {
  return LogOptions(
    systemLevel: systemLevel ?? this.systemLevel,
    customLevel: customLevel ?? this.customLevel,
    customSink: customSink != null ? customSink.value : this.customSink
  );
}