copyWith method
ThemeExtension<FileTreeTheme>
copyWith({
- Color? backgroundColor,
- Color? textColor,
- Color? iconColor,
- Color? highlightColor,
- 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,
);
}