copyWith method

FolderViewTextTheme copyWith({
  1. TextStyle? textStyle,
  2. TextStyle? selectedTextStyle,
  3. TextStyle? folderTextStyle,
  4. TextStyle? parentTextStyle,
  5. TextStyle? childTextStyle,
})

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

Implementation

FolderViewTextTheme copyWith({
  TextStyle? textStyle,
  TextStyle? selectedTextStyle,
  TextStyle? folderTextStyle,
  TextStyle? parentTextStyle,
  TextStyle? childTextStyle,
}) {
  return FolderViewTextTheme(
    textStyle: textStyle ?? this.textStyle,
    selectedTextStyle: selectedTextStyle ?? this.selectedTextStyle,
    folderTextStyle: folderTextStyle ?? this.folderTextStyle,
    parentTextStyle: parentTextStyle ?? this.parentTextStyle,
    childTextStyle: childTextStyle ?? this.childTextStyle,
  );
}