LayoutTester class

Constructors

LayoutTester.new(WidgetTester tester)
Creates an instance of LayoutTester.
const

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
tester WidgetTester
Widget tester used with this instance.
final

Methods

getScreenSize() Size
Returns the size of the screen.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
testLayout(Set<WidgetTrait> traits) → void
Runs the layout test logic.
testPosition(TargetId targetId, Rect targetBounds, PositionAssert assertion) → void
Tests the position of the provided widget.
testRelation(TargetId targetId, Rect targetBounds, RelationAssert assertion) → void
Tests if the target matches the relation rules given by the assertion.
testRelativePosition(TargetId targetId, Rect targetBounds, Rect refBounds, RelativePositionAssert assertion) → void
Tests the position of the provided widget relative to another element position.
testRelativeSize(TargetId targetId, Size targetSize, Size compareSize, RelativeSizeAssert assertion) → void
Tests the size of the provided widget relative to another element size.
testSize(TargetId targetId, Size targetSize, SizeAssert assertion) → void
Tests the size of the provided widget.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited