ItemResult class

Result for a single processed item (folder/project).

Constructors

ItemResult({required String path, required String name, String? commandName, bool success = true, bool skipped = false, String? message, String? error})
const
ItemResult.failure({required String path, required String name, String? commandName, required String? error})
const
ItemResult.skipped({required String path, required String name, String? commandName, String? message})
A deliberately skipped item — a configured or conditional skip, reported as a (non-failing) success so it does not affect the exit code, but surfaced in the end-of-run summary's skipped section. message should explain why the item was skipped.
const
ItemResult.success({required String path, required String name, String? commandName, String? message})
const

Properties

commandName String?
The command that produced this result (e.g. 'runner', 'compiler').
final
error String?
Error message if failed.
final
hashCode int
The hash code for this object.
no setterinherited
message String?
Result message.
final
name String
Item name.
final
path String
Item path.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
skipped bool
Whether the item was deliberately skipped (a configured/conditional skip — not a failure). Skipped items are still success so they never affect the exit code, but the end-of-run summary lists them separately from items that did real work. See ToolResult.renderRunSummary.
final
success bool
Whether processing succeeded.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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