copyWith static method
Widget
copyWith({
- Key? key,
- required Widget child,
- EdgeInsets? padding,
- double? height,
- double? itemSpacing,
- Color? color,
- IconThemeData? iconTheme,
- TextStyle? textStyle,
- Color? backgroundColor,
- Color? highlightColor,
Makes a copy of the nearest BreadcrumbTheme overwriting selected fields.
Implementation
static Widget copyWith({
Key? key,
required Widget child,
EdgeInsets? padding,
double? height,
double? itemSpacing,
Color? color,
IconThemeData? iconTheme,
TextStyle? textStyle,
Color? backgroundColor,
Color? highlightColor,
}) {
return Builder(
key: key,
builder: (context) => BreadcrumbTheme(
data: BreadcrumbTheme.of(context).copyWith(
padding: padding,
height: height,
itemSpacing: itemSpacing,
color: color,
iconTheme: iconTheme,
textStyle: textStyle,
backgroundColor: backgroundColor,
highlightColor: highlightColor,
),
child: child,
),
);
}