Should class
Static class for Should
Constructors
- Should()
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
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
completeAfter(
Duration duration, {required dynamic func(), bool shouldSkipThrowException = false}) → Future< Duration> - Check that the function should complete execution after period of time
-
completeIn(
Duration duration, {required dynamic func(), bool shouldSkipThrowException = false}) → Future< Duration> - Check that the function should complete execution in a duration
-
notThrowAsync(
dynamic func()) → Future - Check that the function should not throw any exception
-
notThrowError<
T extends Error> (dynamic func()) → T? - Expects the function to throw Exception
-
notThrowException<
T extends Exception> (dynamic func()) → T? - Expects the function to throw Exception
-
satisfyAllConditions(
List< dynamic Function()> conditions) → void -
throwAsync<
T extends Exception> (dynamic func()) → Future - Expects the function to throw Exception
-
throwError<
T extends Error> (dynamic func()) → T - Expects the function to throw Exception
-
throwException<
T extends Exception> (dynamic func()) → T? - Expects the function to throw Exception