copyWith method

Keyline copyWith({
  1. double? xPos,
  2. KeylineGravity? gravity,
  3. KeylineDecorator? decorator,
})

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