copyWith method

LoggerConfig copyWith({
  1. bool? enableInDebug,
  2. List<String>? allowedIds,
  3. bool? enableLongPressGesture,
  4. bool? enablePersistence,
  5. int? maxStoredLogs,
})

Copy this config with new values.

Implementation

LoggerConfig copyWith({
  bool? enableInDebug,
  List<String>? allowedIds,
  bool? enableLongPressGesture,
  bool? enablePersistence,
  int? maxStoredLogs,
}) {
  return LoggerConfig(
    enableInDebug: enableInDebug ?? this.enableInDebug,
    allowedIds: allowedIds ?? this.allowedIds,
    enableLongPressGesture:
        enableLongPressGesture ?? this.enableLongPressGesture,
    enablePersistence: enablePersistence ?? this.enablePersistence,
    maxStoredLogs: maxStoredLogs ?? this.maxStoredLogs,
  );
}