copyWith method

  1. @override
TransformModifierSpec copyWith({
  1. Matrix4? transform,
  2. Alignment? alignment,
})
override

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

Implementation

@override
TransformModifierSpec copyWith({Matrix4? transform, Alignment? alignment}) {
  return TransformModifierSpec(
    transform: transform ?? this.transform,
    alignment: alignment ?? this.alignment,
  );
}