copyWith method

FolderViewIconTheme copyWith({
  1. double? iconSize,
  2. Color? iconColor,
  3. Color? selectedIconColor,
  4. IconData? folderIcon,
  5. IconData? folderOpenIcon,
  6. IconData? parentIcon,
  7. IconData? parentOpenIcon,
  8. IconData? childIcon,
  9. IconData? expandIcon,
})

Creates a copy of this theme with the given fields replaced with new values

Implementation

FolderViewIconTheme copyWith({
  double? iconSize,
  Color? iconColor,
  Color? selectedIconColor,
  IconData? folderIcon,
  IconData? folderOpenIcon,
  IconData? parentIcon,
  IconData? parentOpenIcon,
  IconData? childIcon,
  IconData? expandIcon,
}) {
  return FolderViewIconTheme(
    iconSize: iconSize ?? this.iconSize,
    iconColor: iconColor ?? this.iconColor,
    selectedIconColor: selectedIconColor ?? this.selectedIconColor,
    folderIcon: folderIcon ?? this.folderIcon,
    folderOpenIcon: folderOpenIcon ?? this.folderOpenIcon,
    parentIcon: parentIcon ?? this.parentIcon,
    parentOpenIcon: parentOpenIcon ?? this.parentOpenIcon,
    childIcon: childIcon ?? this.childIcon,
    expandIcon: expandIcon ?? this.expandIcon,
  );
}