copyWith method

  1. @override
LogViewerTheme copyWith({
  1. Color? traceColor,
  2. Color? debugColor,
  3. Color? infoColor,
  4. Color? warningColor,
  5. Color? errorColor,
  6. Color? fatalColor,
  7. Color? warningBackground,
  8. Color? errorBackground,
  9. Color tagColor(
    1. String tag
    )?,
})
override

Creates a copy of this theme extension with the given fields replaced by the non-null parameter values.

Implementation

@override
LogViewerTheme copyWith({
  Color? traceColor,
  Color? debugColor,
  Color? infoColor,
  Color? warningColor,
  Color? errorColor,
  Color? fatalColor,
  Color? warningBackground,
  Color? errorBackground,
  Color Function(String tag)? tagColor,
}) => LogViewerTheme(
  traceColor: traceColor ?? this.traceColor,
  debugColor: debugColor ?? this.debugColor,
  infoColor: infoColor ?? this.infoColor,
  warningColor: warningColor ?? this.warningColor,
  errorColor: errorColor ?? this.errorColor,
  fatalColor: fatalColor ?? this.fatalColor,
  warningBackground: warningBackground ?? this.warningBackground,
  errorBackground: errorBackground ?? this.errorBackground,
  tagColor: tagColor ?? this.tagColor,
);