copyWith method

BreadcrumbThemeData copyWith({
  1. EdgeInsets? padding,
  2. double? height,
  3. double? itemSpacing,
  4. Color? color,
  5. IconThemeData? iconTheme,
  6. TextStyle? textStyle,
  7. Color? backgroundColor,
  8. Color? highlightColor,
})

Makes a copy of BreadcrumbThemeData overwriting selected fields.

Implementation

BreadcrumbThemeData copyWith({
  EdgeInsets? padding,
  double? height,
  double? itemSpacing,
  Color? color,
  IconThemeData? iconTheme,
  TextStyle? textStyle,
  Color? backgroundColor,
  Color? highlightColor,
}) {
  return BreadcrumbThemeData(
    padding: padding ?? this.padding,
    height: height ?? this.height,
    itemSpacing: itemSpacing ?? this.itemSpacing,
    color: color ?? this.color,
    iconTheme: iconTheme ?? this.iconTheme,
    textStyle: textStyle ?? this.textStyle,
    backgroundColor: backgroundColor ?? this.backgroundColor,
    highlightColor: highlightColor ?? this.highlightColor,
  );
}