MathFieldEditingController class
A controller for an editable math field.
- Inheritance
-
- Object
- ChangeNotifier
- MathFieldEditingController
Constructors
- MathFieldEditingController.new()
-
Constructs a
MathKeyboardViewModel
.
Properties
- currentNode ↔ TeXNode
-
The block the user is currently in.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- hasListeners → bool
-
Whether any listeners are currently registered.
no setterinherited
- isEmpty → bool
-
Whether the controller is empty or not.
no setter
- root ↔ TeXNode
-
The root node of the expression.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- secondPage ↔ bool
-
Type of the Keyboard.
getter/setter pair
Methods
-
addFrac(
TeXFunction frac) → void - Adds a fraction to the current node.
-
addFunction(
String tex, List< TeXArg> args) → void - Add function to the current node.
-
addLeaf(
String tex) → void - Add leaf to the current node.
-
addListener(
VoidCallback listener) → void -
Register a closure to be called when the object changes.
inherited
-
addPow(
TeXFunction pow) → void - Adds a pow to the current node
-
clear(
) → void - Clears all by resetting the controller.
-
currentEditingValue(
{bool placeholderWhenEmpty = true}) → String -
Returns the current editing value (expression), which requires temporarily
removing the cursor. When
placeholderWhenEmpty
is true, a TeX \Box is returned as a placeholder. -
dispose(
) → void -
Discards any resources used by the object. After this is called, the
object is not in a usable state and should be discarded (calls to
addListener will throw after the object is disposed).
override
-
goBack(
{bool deleteMode = false}) → void - Navigate to the previous node.
-
goNext(
) → void - Navigate to the next node.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
notifyListeners(
) → void -
Call all the registered listeners.
inherited
-
removeListener(
VoidCallback listener) → void -
Remove a previously registered closure from the list of closures that are
notified when the object changes.
override
-
togglePage(
) → void - Switches between Page 1 and 2.
-
toString(
) → String -
A string representation of this object.
inherited
-
updateValue(
Expression expression) → void -
Clears the current value and sets it to the
expression
equivalent.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited