ComposeTargetId class

Special identifier which is used to build traits within WidgetTrait.withParents.

It extends TargetId but introduces a trait ID to refer to a trait.

Inheritance

Constructors

ComposeTargetId({String? traitId, Type? type, Key? key, int? elementIndex})
Creates an instance of ComposeTargetId.
const
ComposeTargetId.custom(WidgetLocator customLocator, {String? traitId, int? elementIndex})
Creates an instance of ComposeTargetId with a custom locator function.
const

Properties

customLocator → WidgetLocator?
Callback to realize custom identificaton logic for the target widget.
finalinherited
elementIndex → int?
Used to distinguish the right widget in a list of possibilities.
finalinherited
hashCode → int
The hash code for this object.
no setterinherited
key → Key?
Key of the target widget.
finalinherited
props → List<Object?>
The list of properties that will be used to determine whether two instances are equal.
no setteroverride
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
stringify → bool?
If set to true, the toString method will be overridden to output this instance's props.
no setterinherited
traitId → String?
Trait ID.
final
type → Type?
Type of the target widget.
finalinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited