EditTextAction class final
Edits text field node's text at its cursor: wraps the selection in before / after, toggles a (numbered) list, inserts or sets text, replaces the word being typed, clears it or focuses it.
- Inheritance
-
- Object
- ActionDef
- CoreAction
- EditTextAction
Constructors
- EditTextAction({String node = '', EditTextOperation operation = EditTextOperation.insert, String text = '', String before = '', String? after, bool numbered = false, bool enabled = true, bool nonBlocking = false, Predicate? when})
-
const
Properties
- after → String?
-
Null: the same as before.
final
- before → String
-
final
- enabled → bool
-
False skips the action.
finalinherited
- fieldsJson → Json
-
Its own fields, as JSON (sparse): what toJson writes besides
typeand the common fields. An action class outside this library overrides this.no setterinherited - hashCode → int
-
The hash code for this object.
no setterinherited
-
nested
→ List<
ActionDef> -
The actions it runs itself (branches, follow-ups), in order.
no setterinherited
- node → String
-
final
- nonBlocking → bool
-
The chain doesn't wait for it, and its failure doesn't stop the chain.
finalinherited
- numbered → bool
-
final
- operation → EditTextOperation
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
selfAndNested
→ Iterable<
ActionDef> -
This action, then every action nested in it, depth first.
no setterinherited
- text → String
-
final
- type → String
-
The JSON
type.no setteroverride - when → Predicate?
-
Runs only when it holds; null: always.
finalinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Json -
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited