copyWith method

FlutterFolderViewTheme<T> copyWith({
  1. FolderViewLineTheme? lineTheme,
  2. FolderViewScrollbarTheme? scrollbarTheme,
  3. FolderNodeTheme<T>? folderTheme,
  4. ParentNodeTheme<T>? parentTheme,
  5. ChildNodeTheme<T>? childTheme,
  6. ExpandIconTheme? expandIconTheme,
  7. FolderViewSpacingTheme? spacingTheme,
  8. FolderViewNodeStyleTheme? nodeStyleTheme,
  9. int? animationDuration,
  10. double? rowHeight,
  11. double? rowSpacing,
})

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

Implementation

FlutterFolderViewTheme<T> copyWith({
  FolderViewLineTheme? lineTheme,
  FolderViewScrollbarTheme? scrollbarTheme,
  FolderNodeTheme<T>? folderTheme,
  ParentNodeTheme<T>? parentTheme,
  ChildNodeTheme<T>? childTheme,
  ExpandIconTheme? expandIconTheme,
  FolderViewSpacingTheme? spacingTheme,
  FolderViewNodeStyleTheme? nodeStyleTheme,
  int? animationDuration,
  double? rowHeight,
  double? rowSpacing,
}) {
  return FlutterFolderViewTheme<T>(
    lineTheme: lineTheme ?? this.lineTheme,
    scrollbarTheme: scrollbarTheme ?? this.scrollbarTheme,
    folderTheme: folderTheme ?? this.folderTheme,
    parentTheme: parentTheme ?? this.parentTheme,
    childTheme: childTheme ?? this.childTheme,
    expandIconTheme: expandIconTheme ?? this.expandIconTheme,
    spacingTheme: spacingTheme ?? this.spacingTheme,
    nodeStyleTheme: nodeStyleTheme ?? this.nodeStyleTheme,
    animationDuration: animationDuration ?? this.animationDuration,
    rowHeight: rowHeight ?? this.rowHeight,
    rowSpacing: rowSpacing ?? this.rowSpacing,
  );
}