VirtualPiano constructor
const
VirtualPiano({
- Key? key,
- required RangeValues noteRange,
- List<
HighlightedNoteSet> ? highlightedNoteSets, - dynamic onNotePressed()?,
- dynamic onNotePressSlide()?,
- dynamic onNoteReleased()?,
- Color whiteKeyColor = Colors.white,
- Color blackKeyColor = Colors.black,
- double elevation = 2,
- double borderWidth = 0.5,
- double keyHighlightColorBlend = 0.8,
- 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);