copyWith method

  1. @override
AuraUITheme copyWith({
  1. double? buttonRadius,
  2. double? cardRadius,
  3. double? containerRadius,
})
override

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

Implementation

@override
AuraUITheme copyWith({
  double? buttonRadius,
  double? cardRadius,
  double? containerRadius,
}) {
  return AuraUITheme(
    buttonRadius: buttonRadius ?? this.buttonRadius,
    cardRadius: cardRadius ?? this.cardRadius,
    containerRadius: containerRadius ?? this.containerRadius,
  );
}