removeTextBox method
Removes a text box from the current page and records the action in history.
Implementation
void removeTextBox(TextBox textBox) {
_textBoxes[_currentPage]?.remove(textBox);
_history[_currentPage]!.add(
TextBoxAction(textBox, isAdd: false),
); // Record action.
notifyListeners(); // Notify listeners.
}