copyWith method
Creates a copy of this spec with the given fields replaced by the non-null parameter values.
Implementation
@override
OpacityModifierSpec copyWith({double? opacity}) {
return OpacityModifierSpec(opacity ?? this.opacity);
}
Creates a copy of this spec with the given fields replaced by the non-null parameter values.
@override
OpacityModifierSpec copyWith({double? opacity}) {
return OpacityModifierSpec(opacity ?? this.opacity);
}