TestStatusResponse class
Response that gets sent periodically from a RunTestCommand.
- Inheritance
-
- Object
- CommandResponse
- TestStatusResponse
Constructors
- TestStatusResponse({bool complete = false, double progress = 0.0, String? message, required TestReport report, required String status, bool? success})
Properties
- complete → bool
-
Will be true if and only if the test has been completed.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- message → String?
-
The optional message associated with the response.
finalinherited
- payload → dynamic
-
The type-specific payload. The value of which is defined by each
sub-class.
finalinherited
- progress → double
-
The 0-1 based progress of the test run.
final
- report → TestReport
-
The associated test report. It will be a partial report on each status
response until complete is true.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- status → String
-
A displayable status for the current status event.
final
- success → bool?
-
Optional success flag. If set the process is complete. If null, the
process associated with the command is still running.
finalinherited
- type → String
-
The type. Used to define the payload and response class.
finalinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
Abstract function that concrete classes must implement. This must encode
the internal data model to a JSON compatible representation.
inherited
-
toString(
) → String -
Returns the string encoded JSON representation for this class. This will
remove all null values and empty collections from the returned string.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
fromDynamic(
dynamic map, String? message, bool? success) → TestStatusResponse -
Processes a Map or Map-like object into a response. If the map is null
then this will return null.
override
Constants
- kResponseType → const String