TextValueRun class
- Inheritance
-
- Object
- TextValueRunBase
- TextValueRun
Constructors
Properties
- artboard → Artboard?
-
The artboard this component belongs to.
no setterinherited
- canBeOrphaned → bool
-
Override to true if you want some object inheriting from Component to not
have a parent. Most objects will validate that they have a parent during
the onAdded callback otherwise they are considered invalid and are culled
from core.
no setterinherited
- context ↔ RuntimeArtboard
-
covariantgetter/setter pairinherited
- coreType → int
-
no setterinherited
-
coreTypes
→ Set<
int> -
no setterinherited
-
dependencies
→ Set<
Component> -
no setterinherited
-
dependents
→ Set<
Component> -
no setterinherited
- dirt ↔ int
-
getter/setter pairinherited
- graphOrder ↔ int
-
getter/setter pairinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- hasValidated → bool
-
no setterinherited
- id ↔ int
-
getter/setter pairinherited
- isCollapsed → bool
-
Whether this Component's update processes at all.
no setterinherited
- name ↔ String
-
Non-unique identifier, used to give friendly names to elements in the
hierarchy. Runtimes provide an API for finding components by this name.
getter/setter pairinherited
- offset → int
-
Returns the offset of this run within the text.
no setter
- parent ↔ ContainerComponent?
-
getter/setter pairinherited
- parentId ↔ int
-
Identifier used to track parent ContainerComponent.
getter/setter pairinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- style ↔ TextStyle?
-
getter/setter pair
- styleId ↔ int
-
The id of the style to be applied to this run.
getter/setter pairinherited
- text ↔ String
-
The text string value.
getter/setter pairinherited
- textComponent → Text?
-
no setter
- userData ↔ dynamic
-
getter/setter pairinherited
Methods
-
addDependent(
Component dependent, {Component? via}) → bool -
Mark
dependent
as a component which must update after this. Providevia
as the Component registering the dependency when it is notdependent
itself. At edit time this allows the editor to rebuild bothdependent
andvia
whendependent
has its dependencies cleared.inherited -
addDirt(
int value, {bool recurse = false}) → bool -
inherited
-
allDependencies(
Set< Component> dependencies) → void -
inherited
-
buildDependencies(
) → void -
inherited
-
changeArtboard(
Artboard? value) → void -
inherited
-
clearDependencies(
) → void -
inherited
-
clone<
K extends Core< (CoreContext> >) → K? -
Make a duplicate of this core object, N.B. that all properties excluding
object id are copied.
inherited
-
copy(
covariant Core< CoreContext> source) → void -
Copies property values, currently doesn't trigger change callbacks. It's
meant to be a helper for clone.
inherited
-
import(
ImportStack stack) → bool -
inherited
-
isValidParent(
Component parent) → bool -
inherited
-
markRebuildDependencies(
) → void -
inherited
-
markShapeDirty(
) → void -
nameChanged(
String from, String to) → void -
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
onAdded(
) → void -
onAddedDirty(
) → void -
onDependencyRemoved(
Component dependent) → void -
Something we depend on has been removed. It's important to clear out any
stored references to that dependency so it can be garbage collected (if
necessary).
inherited
-
onDirty(
int mask) → void -
inherited
-
onRemoved(
) → void - When a component has been removed from the Core Context, we clean up any dangling references left on the parent and on any other dependent component. It's important for specialization of Component to respond to override onDependencyRemoved and clean up any further stored references to that component (for example the target of a Constraint).
-
parentChanged(
ContainerComponent? from, ContainerComponent? to) → void -
inherited
-
parentIdChanged(
int from, int to) → void -
inherited
-
propagateCollapse(
bool collapse) → bool -
inherited
-
remove(
) → void -
inherited
-
resolveArtboard(
) → bool -
Find the artboard in the hierarchy.
inherited
-
styleIdChanged(
int from, int to) → void -
override
-
textChanged(
String from, String to) → void -
override
-
toString(
) → String -
A string representation of this object.
inherited
-
update(
int dirt) → void -
userDataChanged(
dynamic from, dynamic to) → void -
inherited
-
validate(
) → bool -
inherited
-
visitAncestor(
Component ancestor) → void -
Called whenever we're resolving the artboard, we piggy back on that
process to visit ancestors in the tree. This is a good opportunity to
check if we have an ancestor of a specific type. For example, a Path needs
to know which Shape it's within.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited