VirtualPiano constructor

const VirtualPiano({
  1. Key? key,
  2. required RangeValues noteRange,
  3. List<HighlightedNoteSet>? highlightedNoteSets,
  4. dynamic onNotePressed(
    1. int,
    2. double
    )?,
  5. dynamic onNotePressSlide(
    1. int,
    2. double
    )?,
  6. dynamic onNoteReleased(
    1. int
    )?,
  7. Color whiteKeyColor = Colors.white,
  8. Color blackKeyColor = Colors.black,
  9. double elevation = 2,
  10. double borderWidth = 0.5,
  11. double keyHighlightColorBlend = 0.8,
  12. bool showKeyLabels = false,
})

Implementation

const VirtualPiano({
  Key? key,
  required this.noteRange,
  this.highlightedNoteSets,
  this.onNotePressed,
  this.onNotePressSlide,
  this.onNoteReleased,
  this.whiteKeyColor = Colors.white,
  this.blackKeyColor = Colors.black,
  this.elevation = 2,
  this.borderWidth = 0.5,
  this.keyHighlightColorBlend = 0.8,
  this.showKeyLabels = false,
}) : super(key: key);