nextRow method

void nextRow()

Moves to the next row of the table.

Implementation

void nextRow() {
  if (_index != -1 && (buttons.elementAtOrNull(_index)?.isEmpty ?? false)) {
    throw VkDartKeyboardException(
        'To move to the next line, fill in the previous one by the index $_index');
  }

  _index += 1;
  buttons.add([]);
}