canMoveBlockToIndex method

bool canMoveBlockToIndex(
  1. String blockId, {
  2. required int targetIndex,
})

Whether the top-level block containing blockId can move to targetIndex.

Implementation

bool canMoveBlockToIndex(
  String blockId, {
  required int targetIndex,
}) {
  return documentEditor.canMoveBlockToIndex(
    blockId: blockId,
    targetIndex: targetIndex,
  );
}