copyWith method
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,
);
}