copyWith method
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,
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,
);
}