PositionAssert class
Describes the position of a widget targeted by WidgetTrait.
The positional information is relative to the test screen dimension.
- Inheritance
-
- Object
- TraitAssert
- PositionAssert
Constructors
- PositionAssert.new({double? left, double? top, double? right, double? bottom})
-
Creates an instance of PositionAssert.
const
- PositionAssert.bounds(Rect rect)
- Creates an instance of PositionAssert from the given rectangle.
- PositionAssert.location(double x, double y)
-
Creates an instance of PositionAssert with the given location.
const
- PositionAssert.LTRB(double left, double top, double right, double bottom)
-
Creates an instance of PositionAssert with all values
(left, top, right, bottom) set.
const
- PositionAssert.offset(Offset offset)
- Creates an instance of PositionAssert from the given offset.
Properties
- bottom → double?
-
Offset to the bottom border of the scope.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- left → double?
-
Offset to the left border of the scope.
final
-
props
→ List<
Object?> -
The list of properties that will be used to determine whether
two instances are equal.
no setter
- right → double?
-
Offset to the right border of the scope.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- stringify → bool?
-
If set to
true
, the toString method will be overridden to output this instance's props.no setterinherited - top → double?
-
Offset to the top border of the scope.
final
Methods
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited