getSamSlot static method

int getSamSlot(
  1. SamSlot samSlot
)

Implementation

static int getSamSlot(SamSlot samSlot) => switch (samSlot) {
      SamSlot.slot_1 => 1,
      SamSlot.slot_2 => 2,
    };