copyWith method

  1. @override
NavigationBarThemeData copyWith({
  1. double? height,
  2. Color? backgroundColor,
  3. double? elevation,
  4. Color? shadowColor,
  5. Color? surfaceTintColor,
  6. Color? indicatorColor,
  7. ShapeBorder? indicatorShape,
  8. WidgetStateProperty<TextStyle?>? labelTextStyle,
  9. WidgetStateProperty<IconThemeData?>? iconTheme,
  10. NavigationDestinationLabelBehavior? labelBehavior,
  11. WidgetStateProperty<Color?>? overlayColor,
  12. WidgetStateProperty<Color?>? destinationOverlayColor,
  13. ShapeBorder? destinationIndicatorShape,
  14. EdgeInsetsGeometry? margin,
  15. EdgeInsetsGeometry? padding,
  16. Offset? tooltipOffset,
  17. EdgeInsetsGeometry? labelPadding,
  18. TooltipTriggerMode? tooltipTrigger,
  19. TooltipTriggerMode? tooltipTriggerWhenLabelVisible,
  20. TooltipTriggerMode? tooltipTriggerWhenLabelHidden,
  21. BadgeThemeData? badgeThemeData,
})
override

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

Implementation

@override
NavigationBarThemeData copyWith({
  double? height,
  Color? backgroundColor,
  double? elevation,
  Color? shadowColor,
  Color? surfaceTintColor,
  Color? indicatorColor,
  ShapeBorder? indicatorShape,
  WidgetStateProperty<TextStyle?>? labelTextStyle,
  WidgetStateProperty<IconThemeData?>? iconTheme,
  NavigationDestinationLabelBehavior? labelBehavior,
  WidgetStateProperty<Color?>? overlayColor,
  WidgetStateProperty<Color?>? destinationOverlayColor,
  ShapeBorder? destinationIndicatorShape,
  EdgeInsetsGeometry? margin,
  EdgeInsetsGeometry? padding,
  Offset? tooltipOffset,
  EdgeInsetsGeometry? labelPadding,
  TooltipTriggerMode? tooltipTrigger,
  TooltipTriggerMode? tooltipTriggerWhenLabelVisible,
  TooltipTriggerMode? tooltipTriggerWhenLabelHidden,
  BadgeThemeData? badgeThemeData,
}) {
  return NavigationBarThemeData(
    height: height ?? this.height,
    backgroundColor: backgroundColor ?? this.backgroundColor,
    elevation: elevation ?? this.elevation,
    shadowColor: shadowColor ?? this.shadowColor,
    surfaceTintColor: surfaceTintColor ?? this.surfaceTintColor,
    indicatorColor: indicatorColor ?? this.indicatorColor,
    indicatorShape: indicatorShape ?? this.indicatorShape,
    labelTextStyle: labelTextStyle ?? this.labelTextStyle,
    iconTheme: iconTheme ?? this.iconTheme,
    labelBehavior: labelBehavior ?? this.labelBehavior,
    overlayColor: overlayColor ?? this.overlayColor,
    destinationOverlayColor:
        destinationOverlayColor ?? this.destinationOverlayColor,
    destinationIndicatorShape:
        destinationIndicatorShape ?? this.destinationIndicatorShape,
    margin: margin ?? this.margin,
    padding: padding ?? this.padding,
    tooltipOffset: tooltipOffset ?? this.tooltipOffset,
    labelPadding: labelPadding ?? this.labelPadding,
    tooltipTrigger: tooltipTrigger ?? this.tooltipTrigger,
    tooltipTriggerWhenLabelVisible:
        tooltipTriggerWhenLabelVisible ?? this.tooltipTriggerWhenLabelVisible,
    tooltipTriggerWhenLabelHidden:
        tooltipTriggerWhenLabelHidden ?? this.tooltipTriggerWhenLabelHidden,
    badgeThemeData: badgeThemeData ?? this.badgeThemeData,
  );
}