copyWith method

SafaehFloatingAppearance copyWith({
  1. SafaehFloatingSurfaceStyle? style,
  2. double? transparency,
  3. double? blurSigma,
  4. Color? tintColor,
  5. BoxBorder? border,
  6. List<BoxShadow>? shadows,
})

Copies this appearance, replacing supplied values.

Implementation

SafaehFloatingAppearance copyWith({
  SafaehFloatingSurfaceStyle? style,
  double? transparency,
  double? blurSigma,
  Color? tintColor,
  BoxBorder? border,
  List<BoxShadow>? shadows,
}) {
  return SafaehFloatingAppearance(
    style: style ?? this.style,
    transparency: transparency ?? this.transparency,
    blurSigma: blurSigma ?? this.blurSigma,
    tintColor: tintColor ?? this.tintColor,
    border: border ?? this.border,
    shadows: shadows ?? this.shadows,
  );
}