copyWith method
creates a new Keyline with provided overrides
Implementation
Keyline copyWith({
double? xPos,
KeylineGravity? gravity,
KeylineDecorator? decorator,
}) {
return Keyline(
xPos ?? this.xPos,
gravity: gravity ?? this.gravity,
decorator: decorator ?? this.decorator,
);
}