copyWith method

  1. @override
Material3ThemeExtension copyWith({
  1. Material3DesignSystem? designSystem,
})
override

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

Implementation

@override
Material3ThemeExtension copyWith({Material3DesignSystem? designSystem}) {
  return Material3ThemeExtension(
    designSystem: designSystem ?? this.designSystem,
  );
}