copyWith method

BreadcrumbTheme copyWith({
  1. ValueGetter<Widget?>? separator,
  2. ValueGetter<EdgeInsetsGeometry?>? padding,
})

Returns a copy of this theme with the given fields replaced.

Implementation

BreadcrumbTheme copyWith({
  ValueGetter<Widget?>? separator,
  ValueGetter<EdgeInsetsGeometry?>? padding,
}) {
  return BreadcrumbTheme(
    separator: separator == null ? this.separator : separator(),
    padding: padding == null ? this.padding : padding(),
  );
}