toggle static method

TestScope toggle(
  1. TestScope runType
)

Implementation

static TestScope toggle(TestScope runType) {
  final index = TestScope.values.indexOf(runType);

  return TestScope
      .values[index == TestScope.values.length - 1 ? 0 : index + 1];
}