format method

  1. @override
String format(
  1. NoteName noteName
)
override

Formats this V.

The output of this method should be accepted by parse to reconstruct the original value.

Implementation

@override
String format(NoteName noteName) => switch (noteName) {
  .b => _altB,
  NoteName(:final name) => name,
}.toUpperCase();