insertTableRowBefore method

bool insertTableRowBefore(
  1. String tableId,
  2. int rowIndex
)

Inserts a table row before rowIndex.

Implementation

bool insertTableRowBefore(String tableId, int rowIndex) {
  if (document.blockById(tableId) is! MarkdownTableBlock) return false;
  documentEditor.insertTableRowBefore(tableId, rowIndex);
  return true;
}