TargetId class

Identifier for a widget in a WidgetTrait.

Implementers

Constructors

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

Properties

customLocator WidgetLocator?
Callback to realize custom identificaton logic for the target widget.
final
elementIndex int?
Used to distinguish the right widget in a list of possibilities.
final
hashCode int
The hash code for this object.
no setterinherited
key Key?
Key of the target widget.
final
props List<Object?>
The list of properties that will be used to determine whether two instances are equal.
no setter
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
type Type?
Type of the target widget.
final

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