TestRunnerThemeData class

Test runner theme data that can be used to alter the appearance of the built in test runner.

Annotations

Constructors

TestRunnerThemeData({Color runnerOverlayColor = Colors.black26, bool showRunnerStatus = kDebugMode == true, bool showStepText = false, TestStatusAlignment statusAlignment = TestStatusAlignment.bottom, Color statusBackgroundColor = Colors.black45, Color statusErrorColor = Colors.red, double statusOpacity = 0.4, Color statusProgressColor = Colors.black, Color statusSuccessColor = Colors.green, Color statusTextColor = Colors.white})
const
TestRunnerThemeData.dark({Color runnerOverlayColor = Colors.white24, bool showRunnerStatus = kReleaseMode != true, bool showStepText = false, TestStatusAlignment statusAlignment = TestStatusAlignment.bottom, Color statusBackgroundColor = Colors.white54, Color statusErrorColor = const Color(0xFFE57373), double statusOpacity = 0.4, Color statusProgressColor = Colors.white, Color statusSuccessColor = const Color(0xFF81C784), Color statusTextColor = Colors.black})
Default theme for dark mode.
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
runnerOverlayColor Color
The color of the overlay (or backdrop) the runner will display on top of the application.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
showRunnerStatus bool
Set to true to show the test runner status and false otherwise.
final
showStepText bool
Set to true to show the test steps as they happen and false to hide the test steps to fall back to a minimally sized progress bar.
final
statusAlignment TestStatusAlignment
The alignment for where the tests status bar will be displayed.
final
statusBackgroundColor Color
The background color for the test status bar.
final
statusErrorColor Color
The color to display when the current progress will result in an error if completed.
final
statusOpacity double
The opacity of the overall status bar.
final
statusProgressColor Color
The color to display to indicate the how far along the the test is in its execution.
final
statusSuccessColor Color
The color to display to indicate the test step is a success step if the progress completes.
final
statusTextColor Color
The color of the status text.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Encodees the object to JSON. For the format, see fromDynamic.
toString() String
A string representation of this object.
inherited

Operators

operator ==(dynamic other) bool
The equality operator.
override

Static Methods

fromDynamic(dynamic map) TestRunnerThemeData?
Creates a theme data object from a JSON compatible map. This expects the JSON to follow the format: