name property

String name

Returns a string identifying this position, composed of a note name, sharp or flat symbol, and octave number. For example 'F#5'. Use NotePosition.fromName to convert back into a NotePosition.

Implementation

String get name => "${note.name}${accidental.symbol}$octave";