stringFretList property

List<int?> stringFretList

Implementation

List<int?> get stringFretList => _stringFretList != null
    ? _stringFretList!
    : _stringFretList = instrument.stringIndices
        .map(
          (int stringIndex) => positions.firstWhereOrNull(
            (pos) => pos.stringIndex == stringIndex,
          ),
        )
        .map((FretPosition? pos) => pos == null ? null : pos.fretNumber)
        .toList();