TestableRenderController class

Controller that is used to provide information for the Testable. This includes information such as what gestures to respond to as well as how to render the global and / or individual overlays.

Constructors

TestableRenderController({String debugLabel: 'custom', Color flashColor: const Color(0x88FFEB3B), int flashCount: 3, Duration flashDuration: const Duration(milliseconds: 100), TestableGestures gestures, WidgetBuilder globalOverlayBuilder, bool minifyTestSteps: false, Color overlayColor, bool showGlobalOverlay: false, bool testWidgetsEnabled: kDebugMode == true, WidgetOverlayBuilder widgetOverlayBuilder})

Properties

debugLabel String
final
flashColor Color
read-only
flashCount int
read-only
flashDuration Duration
read-only
gestures TestableGestures
read / write
globalOverlayBuilder WidgetBuilder
read / write
hashCode int
The hash code for this object. [...]
read-only, inherited
minifyTestSteps bool
read / write
overlayColor Color
read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
showGlobalOverlay bool
read / write
stream Stream<void>
read-only
testWidgetsEnabled bool
read / write
widgetOverlayBuilder WidgetOverlayBuilder
read / write

Methods

dispose() → void
Disposes the controller.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
Returns a string representation of this object.
override

Operators

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

Static Methods

borderGlobalOverlay({Color color, double radius: 4.0}) WidgetBuilder
A global overlay that renders with a thin border around the entire Testable widget using the given color and border radius.
fullGlobalOverlay({Color color, double opacity: 0.1}) WidgetBuilder
A global overlay that renders with a solid color with a given opacity over the entire Testable widget.
iconWidgetOverlay({Color color, IconData icon, double radius: 0.0}) WidgetOverlayBuilder
An individual overlay for a Testable widget that renders with a given color and centered icon using a border radius.
idWidgetOverlay({Color color, Color textColor: Colors.white, double radius: 0.0}) WidgetOverlayBuilder
An individual overlay for a Testable widget that renders with the given color and border radius. This will render the current status text from the active TestRunner in the center of the widget.
of(BuildContext context) TestableRenderController
Returns either the TestableRenderController from an ancestor TestRunner instance, or this will return the default controller if no TestRunner is available.