Timeout class
A class representing a modification to the default timeout for a test.
By default, a test will time out after 30 seconds. With new Timeout, that can be overridden entirely; with new Timeout.factor, it can be scaled relative to the default.
Constructors
- Timeout(Duration duration)
-
Declares an absolute timeout that overrides the default.
const
- Timeout.factor(num scaleFactor)
-
Declares a relative timeout that scales the default.
const
- Timeout.parse(String timeout)
-
Parse the timeout from a user-provided string. [...]
factory
Properties
Methods
-
apply(
Duration base) → Duration -
Returns a new Duration from applying this to
base
. [...] -
merge(
Timeout other) → Timeout -
Returns a new Timeout that merges this with
other
. [...] -
toString(
) → String -
Returns a string representation of this object.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed. [...]
inherited
Operators
-
operator ==(
dynamic other) → bool -
The equality operator. [...]
override