GgEasyWidgetTest<T extends Widget, S extends State<StatefulWidget>> class

Retrive helpful information to test a widget

  • T is the type of the widget under test
  • S is the type of the widget's state

Constructors

GgEasyWidgetTest(Finder finder, WidgetTester tester)
The constructor

Properties

absoluteFrame Rect
The absolute frame of the tested widget
no setter
element Element
The Element of the tested widget
no setter
finder Finder
The used finder
final
hashCode int
The hash code for this object.
no setterinherited
height double
The height of the widget to be tested
no setter
renderBox RenderBox
The render box of the widget
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
state → S
The state of the widget under test
no setter
tester WidgetTester
The used tester.
final
widget → T
The widget instance under test
no setter
width double
The width of the widget to be tested
no setter

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
press({int? pointer, int buttons = kPrimaryButton, bool warnIfMissed = true}) Future<void>
Apply a mouse click or a touch to the widget coverage:ignore-start
toString() String
A string representation of this object.
inherited

Operators

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