splitBlock static method

TextStory splitBlock({
  1. required TextStory story,
  2. required int blockIndex,
  3. required int offset,
  4. required String newBlockId,
  5. DiagramTextDefinition text = const PlainTextDefinition(),
  6. bool typed = true,
})

Implementation

static TextStory splitBlock({
  required TextStory story,
  required int blockIndex,
  required int offset,
  required String newBlockId,
  DiagramTextDefinition text = const PlainTextDefinition(),
  bool typed = true,
}) => _ParagraphStructureCommands.splitBlock(
  story: story,
  blockIndex: blockIndex,
  offset: offset,
  newBlockId: newBlockId,
  text: text,
  typed: typed,
);