copyWith method

  1. @override
MorphTheme copyWith({
  1. MorphMotion? motion,
  2. double? bumpScale,
  3. double? bumpRecoil,
  4. double? maxScrimOpacity,
  5. Color? scrimColor,
  6. Color? shadowColor,
  7. 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,
  );
}