fromValue static method

LeftRightBalance fromValue(
  1. int value
)

Implementation

static LeftRightBalance fromValue(int value) {
  switch (value) {
    case 127:
      return LeftRightBalance.mask;
    case 128:
      return LeftRightBalance.right;
    default:
      throw ArgumentError.value(value);
  }
}