copyWith method

  1. @override
ThemeExtension<FileTreeTheme> copyWith({
  1. Color? backgroundColor,
  2. Color? textColor,
  3. Color? iconColor,
  4. Color? highlightColor,
  5. Unit? radius,
})
override

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

Implementation

@override
ThemeExtension<FileTreeTheme> copyWith({
  Color? backgroundColor,
  Color? textColor,
  Color? iconColor,
  Color? highlightColor,
  Unit? radius,
}) {
  return FileTreeTheme(
    backgroundColor: backgroundColor ?? this.backgroundColor,
    textColor: textColor ?? this.textColor,
    iconColor: iconColor ?? this.iconColor,
    highlightColor: highlightColor ?? this.highlightColor,
    radius: radius ?? this.radius,
  );
}