Testable class

Workhorse of the Automate Testing Framework.

Inheritance

Constructors

Testable({@required Widget child, TestableGestures gestures, @required String id, String onRequestError(), dynamic onRequestValue(), ValueChanged onSetValue, String scrollableId})
Constructor for the Testable widget. If there is no TestRunner, or the runner is not enabled then this is a simple passthrough for the child. [...]

Properties

child Widget
The child widget the test framework should be testing.
final
gestures TestableGestures
The gesture overrides for this Testable widget.
final
hashCode int
The hash code for this object. [...]
@nonVirtual, read-only, inherited
id String
The page-unique identifier for the widget. This is required for the framework to be able to locate then widget when runnning in test mode.
final
key Key
Controls how one widget replaces another widget in the tree. [...]
final, inherited
onRequestError String Function()
Callback function that can provide the error message from the child widget to the testing framework.
final
onRequestValue → dynamic Function()
Callback function that can provide the value from the child widget to the testing framework.
final
onSetValue ValueChanged
Callback funcation that can be used to set the value to the child widget.
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
scrollableId String
The page-unique id of the Scrollable widget containing this Testable widget. This is required to be able to identify the propery Scrollable when there are multiple Scrollable widgets on a single plage.
final

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree. [...]
inherited
createState() TestableState
Creates the mutable state for this widget at a given location in the tree. [...]
override
debugDescribeChildren() List<DiagnosticsNode>
Returns a list of DiagnosticsNode objects describing this node's children. [...]
@protected, inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node. [...]
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toDiagnosticsNode({String name, DiagnosticsTreeStyle style}) DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep. [...]
inherited
toString({DiagnosticLevel minLevel: DiagnosticLevel.info}) String
Returns a string representation of this object.
inherited
toStringDeep({String prefixLineOne: '', String prefixOtherLines, DiagnosticLevel minLevel: DiagnosticLevel.debug}) String
Returns a string representation of this node and its descendants. [...]
inherited
toStringShallow({String joiner: ', ', DiagnosticLevel minLevel: DiagnosticLevel.debug}) String
Returns a one-line detailed description of the object. [...]
inherited
toStringShort() String
A short, textual description of this widget.
inherited

Operators

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