UseRealDriversForSomeTestConfig class
Use this class in your WidgetDriver tests to use real drivers for some drivers.
You can specify for which drivers you want to use the real driver by passing
in the Type of these drivers into the useRealDriversFor
parameter.
For example, if you only want to use the real driver for a driver class named MyCoolDriver
,
then you would type this:
UseRealDriversForSomeTestConfig(useRealDriversFor: {MyCoolDriver})
Then any driver created during the testing will use a TestDriver unless the driver is of type MyCoolDriver
.
For all the MyCoolDriver
, the real MyCoolDriver
driver will be used instead.
- Implemented types
- Annotations
Constructors
-
UseRealDriversForSomeTestConfig({required Set<
Type> useRealDriversFor})
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
useTestDriver<
Driver extends WidgetDriver> () → bool -
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited