copyWith method
- MorphMotion? motion,
- double? bumpScale,
- double? bumpRecoil,
- double? maxScrimOpacity,
- Color? scrimColor,
- Color? shadowColor,
- MorphSkinStyle? skinStyle,
override
Creates a copy of this theme extension with the given fields replaced by the non-null parameter values.
Implementation
@override
MorphTheme copyWith({
MorphMotion? motion,
double? bumpScale,
double? bumpRecoil,
double? maxScrimOpacity,
Color? scrimColor,
Color? shadowColor,
MorphSkinStyle? skinStyle,
}) {
return MorphTheme(
motion: motion ?? this.motion,
bumpScale: bumpScale ?? this.bumpScale,
bumpRecoil: bumpRecoil ?? this.bumpRecoil,
maxScrimOpacity: maxScrimOpacity ?? this.maxScrimOpacity,
scrimColor: scrimColor ?? this.scrimColor,
shadowColor: shadowColor ?? this.shadowColor,
skinStyle: skinStyle ?? this.skinStyle,
);
}