parseVertexIndex method

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

Implementation

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