copyWith method

LogarConfig copyWith({
  1. LogLevel? minimumLevel,
  2. LogFormat? format,
  3. bool? enabled,
  4. bool? includeStackTrace,
  5. bool? includeTimestamp,
  6. int? maxMessageLength,
  7. String? globalPrefix,
  8. String? merchantId,
  9. String? terminalId,
})

Implementation

LogarConfig copyWith({
  LogLevel? minimumLevel,
  LogFormat? format,
  bool? enabled,
  bool? includeStackTrace,
  bool? includeTimestamp,
  int? maxMessageLength,
  String? globalPrefix,
  String? merchantId,
  String? terminalId,
}) {
  return LogarConfig(
    minimumLevel: minimumLevel ?? this.minimumLevel,
    format: format ?? this.format,
    enabled: enabled ?? this.enabled,
    includeStackTrace: includeStackTrace ?? this.includeStackTrace,
    includeTimestamp: includeTimestamp ?? this.includeTimestamp,
    maxMessageLength: maxMessageLength ?? this.maxMessageLength,
    globalPrefix: globalPrefix ?? this.globalPrefix,
    merchantId: merchantId ?? this.merchantId,
    terminalId: terminalId ?? this.terminalId,
  );
}