Skip to content

Commit

Permalink
Minor fix in flutter function to set properties
Browse files Browse the repository at this point in the history
  • Loading branch information
hkbinaurics committed Sep 10, 2024
1 parent f30fac5 commit bcf65e9
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions flutter/ayf_pack/lib/helpers/ayf_helper_lib.dart
Original file line number Diff line number Diff line change
Expand Up @@ -160,14 +160,18 @@ void setValueSelectionList(AudYoFloBitField selection, int posi,
case jvxPropertyDecoderHintTypeEnum.JVX_PROPERTY_DECODER_MULTI_SELECTION:
case jvxPropertyDecoderHintTypeEnum
.JVX_PROPERTY_DECODER_MULTI_SELECTION_CHANGE_ORDER:
if (selection.bitTest(posi, offset: offset)) {
selection.bitClear(posi, offset: offset);
} else {
if (setValue) {
selection.bitSet(posi, offset: offset);
} else {
selection.bitClear(posi, offset: offset);
}
break;
default:
selection.bitZSet(posi, offset: offset);
if (setValue) {
selection.bitZSet(posi, offset: offset);
} else {
selection.bitClear(posi, offset: offset);
}
}
}

Expand Down

0 comments on commit bcf65e9

Please sign in to comment.