AssertionFailedException class

Contains information about a failing assertion.

Inheritance

Constructors

AssertionFailedException.new({required TargetId targetId, required String cause, required List<FailedAssertionInfo> infos})
Creates an instance of AssertionFailedException.
AssertionFailedException.forPosition({required TargetId targetId, DoublePair? left, DoublePair? top, DoublePair? right, DoublePair? bottom})
Creates an instance of AssertionFailedException for position failure.
AssertionFailedException.forRelation({required TargetId targetId, required PropertyRelation relation, required Rect targetBounds, required double compareValue})
AssertionFailedException.forRelativePosition({required TargetId targetId, DoublePair? leftDistance, DoublePair? topDistance, DoublePair? rightDistance, DoublePair? bottomDistance})
Creates an instance of AssertionFailedException for relative position failure.
AssertionFailedException.forRelativeSize({required TargetId targetId, DoublePair? pWidth, DoublePair? pHeight})
Creates an instance of AssertionFailedException for relative size failure.
AssertionFailedException.forSize({required TargetId targetId, DoublePair? width, DoublePair? height})
Creates an instance of AssertionFailedException for size failure.

Properties

hashCode int
The hash code for this object.
no setterinherited
message String
The error message.
finalinherited
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