TestActions class

Class to perform action during the integration tests

Constructors

TestActions({List<TestAction>? actions, WidgetTester? tester})

Properties

actions List<TestAction>
no setter
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
tester → dynamic
If the WidgetTester is set will be returned, otherwise will get null
no setter

Methods

addAction(TestAction action) → void
Adds an action at the end of the others.
addActionAt(int index, TestAction action) → void
Adds a TestAction at int index
addActionsAll(List<TestAction> multipleActions) → void
Adds a List of TestAction
areAllDone() bool
Returns true if all actions are done
isActionDone(int index) bool
Returns true if an action is done
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
performActionAt(int index) Future<void>
Performs a single action.
performActions({Duration failsAt = const Duration(minutes: 5)}) Future<void>
Performs all actions in order.
resetActions() → void
Resets the actions and the WidgetTester
setTester(WidgetTester tester) → void
Sets the WidgetTester to the class, set this before adding the List of TestAction.
toString() String
A string representation of this object.
inherited

Operators

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