ShotTarget class
The widget an action acts on: key:<value>, text:<value>,
label:<value>, or type:<value> on the command line.
Constructors
- ShotTarget(TargetKind by, String value)
-
const
- ShotTarget.key(String value)
-
The widget with a
ValueKey<String>ofvalue.const - ShotTarget.label(String value)
-
The widget whose semantics label is exactly
value: a text field's label or hint, a button's text.const - ShotTarget.text(String value)
-
The
Textshowing exactlyvalue, or theEditableTextholding it.const - ShotTarget.type(String value)
-
The widget of type
value, with or without type arguments, e.g.DropdownButton<String>.const
Properties
- by → TargetKind
-
How the widget is found.
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- value → String
-
The key, text, label, or type name.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
text:Save, as on the command line.override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override