copyWith method

  1. @override
ThemeExtension<TxPanelThemeData> copyWith({
  1. bool? dense,
  2. ShapeBorder? shape,
  3. Color? selectedColor,
  4. Color? iconColor,
  5. Color? textColor,
  6. EdgeInsetsGeometry? padding,
  7. EdgeInsetsGeometry? margin,
  8. Color? panelColor,
  9. Color? selectedPanelColor,
  10. double? horizontalTitleGap,
  11. double? minLeadingWidth,
  12. double? verticalGap,
  13. bool? enableFeedback,
  14. MaterialStateProperty<MouseCursor?>? mouseCursor,
  15. VisualDensity? visualDensity,
  16. TextStyle? titleTextStyle,
  17. TextStyle? subtitleTextStyle,
  18. TextStyle? leadingAndTrailingTextStyle,
  19. TextStyle? contentTextStyle,
  20. ListTileTitleAlignment? titleAlignment,
  21. Color? focusColor,
  22. Color? splashColor,
  23. Color? hoverColor,
  24. Color? highlightColor,
})
override

Creates a copy of this theme extension with the given fields replaced by the non-null parameter values.

Implementation

@override
ThemeExtension<TxPanelThemeData> copyWith({
  bool? dense,
  ShapeBorder? shape,
  Color? selectedColor,
  Color? iconColor,
  Color? textColor,
  EdgeInsetsGeometry? padding,
  EdgeInsetsGeometry? margin,
  Color? panelColor,
  Color? selectedPanelColor,
  double? horizontalTitleGap,
  double? minLeadingWidth,
  double? verticalGap,
  bool? enableFeedback,
  MaterialStateProperty<MouseCursor?>? mouseCursor,
  VisualDensity? visualDensity,
  TextStyle? titleTextStyle,
  TextStyle? subtitleTextStyle,
  TextStyle? leadingAndTrailingTextStyle,
  TextStyle? contentTextStyle,
  ListTileTitleAlignment? titleAlignment,
  Color? focusColor,
  Color? splashColor,
  Color? hoverColor,
  Color? highlightColor,
}) {
  return TxPanelThemeData(
    dense: dense ?? this.dense,
    shape: shape ?? this.shape,
    selectedColor: selectedColor ?? this.selectedColor,
    iconColor: iconColor ?? this.iconColor,
    textColor: textColor ?? this.textColor,
    padding: padding ?? this.padding,
    margin: margin ?? this.margin,
    panelColor: panelColor ?? this.panelColor,
    selectedPanelColor: selectedPanelColor ?? this.selectedPanelColor,
    horizontalTitleGap: horizontalTitleGap ?? this.horizontalTitleGap,
    verticalGap: verticalGap ?? this.verticalGap,
    minLeadingWidth: minLeadingWidth ?? this.minLeadingWidth,
    enableFeedback: enableFeedback ?? this.enableFeedback,
    mouseCursor: mouseCursor ?? this.mouseCursor,
    visualDensity: visualDensity ?? this.visualDensity,
    titleTextStyle: titleTextStyle ?? this.titleTextStyle,
    subtitleTextStyle: subtitleTextStyle ?? this.subtitleTextStyle,
    leadingAndTrailingTextStyle:
        leadingAndTrailingTextStyle ?? this.leadingAndTrailingTextStyle,
    contentTextStyle: contentTextStyle ?? this.contentTextStyle,
    titleAlignment: titleAlignment ?? this.titleAlignment,
    focusColor: focusColor ?? this.focusColor,
    splashColor: splashColor ?? this.splashColor,
    hoverColor: hoverColor ?? this.hoverColor,
    highlightColor: highlightColor ?? this.highlightColor,
  );
}