LinearGradientBase class Null safety

Implementers

Constructors

LinearGradientBase()

Properties

artboard Artboard?
The artboard this component belongs to.
read-only, inherited
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.
read-only, inherited
children → ContainerChildren
final, inherited
context RuntimeArtboard
covariant, read / write, inherited
coreType int
read-only
coreTypes Set<int>
read-only
dependents Set<Component>
read-only, inherited
dirt int
read / write, inherited
endX double
Change the _endX field value. endXChanged will be invoked only if the field's value has changed.
read / write
endY double
Change the _endY field value. endYChanged will be invoked only if the field's value has changed.
read / write
graphOrder int
read / write, inherited
hashCode int
The hash code for this object. [...]
read-only, inherited
hasValidated bool
read-only, inherited
id int
read / write, inherited
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.
read / write, inherited
opacity double
Change the _opacity field value. opacityChanged will be invoked only if the field's value has changed.
read / write
parent ↔ ContainerComponent?
read / write, inherited
parentId int
Identifier used to track parent ContainerComponent.
read / write, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
startX double
Change the _startX field value. startXChanged will be invoked only if the field's value has changed.
read / write
startY double
Change the _startY field value. startYChanged will be invoked only if the field's value has changed.
read / write
userData ↔ dynamic
read / write, inherited

Methods

addDependent(Component dependent) bool
inherited
addDirt(int value, {bool recurse = false}) bool
inherited
appendChild(Component child) → void
inherited
buildDependencies() → void
@mustCallSuper, inherited
buildDrawOrder(List<Drawable> drawables, DrawRules? rules, List<DrawRules> allRules) → void
inherited
childAdded(Component child) → void
@mustCallSuper, inherited
childRemoved(Component child) → void
inherited
clone<K extends Core<CoreContext>>() → K?
Make a duplicate of this core object, N.B. that all properties including id's are copied.
inherited
copy(covariant LinearGradientBase source) → void
Copies property values, currently doesn't trigger change callbacks. It's meant to be a helper for clone.
endXChanged(double from, double to) → void
endYChanged(double from, double to) → void
forAll(DescentCallback cb) bool
inherited
forEachChild(DescentCallback cb) → void
inherited
import(ImportStack stack) bool
inherited
isValidParent(Component parent) bool
inherited
markRebuildDependencies() → void
inherited
nameChanged(String from, String to) → void
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
onAdded() → void
inherited
onAddedDirty() → void
inherited
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).
@mustCallSuper, inherited
opacityChanged(double from, double to) → void
parentChanged(ContainerComponent? from, ContainerComponent? to) → void
@protected, inherited
parentIdChanged(int from, int to) → void
inherited
prependChild(Component child) → void
inherited
remove() → void
inherited
removeRecursive() → void
Recursive version of Component.remove. This should only be called when you know this is the only part of the branch you are removing in your operation. If your operation could remove items from the same branch multiple times, you should consider building up a list of the individual items to remove and then remove them individually to avoid calling remove multiple times on children.
inherited
resolveArtboard() bool
Find the artboard in the hierarchy.
inherited
startXChanged(double from, double to) → void
startYChanged(double from, double to) → void
toString() String
A string representation of this object. [...]
inherited
update(int dirt) → void
inherited
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.
@mustCallSuper, inherited

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited

Constants

endXInitialValue → const double
[...]
0
endXPropertyKey → const int
34
endYInitialValue → const double
[...]
0
endYPropertyKey → const int
35
opacityInitialValue → const double
[...]
1
opacityPropertyKey → const int
46
startXInitialValue → const double
[...]
0
startXPropertyKey → const int
42
startYInitialValue → const double
[...]
0
startYPropertyKey → const int
33
typeKey → const int
22