WidgetTestGiven<T extends WidgetTestHarness> class
You can use this class directly and then author your own extensions to it for your specific behaviors or you can
extend this class and provide any dependencies you require. See example_widget_test_support.dart
for a complete example
- Inheritance
-
- Object
- UnitTestGiven<
T> - WidgetTestGiven
Constructors
- WidgetTestGiven(T harness)
- Creates the WidgetTestGiven, which makes both the WidgetTestHarness and the WidgetTester available for use in test pre conditions.
Properties
- harness → T
-
An instance of the
T
that is used for setting up preconditions in a test.finalinherited - hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- tester → WidgetTester
-
Class that programmatically interacts with widgets and the test environment.
no setter
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