parseUVIndex method

dynamic parseUVIndex(
  1. dynamic value,
  2. dynamic len
)

Implementation

parseUVIndex(value, len) {
  var index = int.parse(value, radix: 10);
  return (index >= 0 ? index - 1 : index + len / 2) * 2;
}