GenerationResult class
Contains the complete result of an asset generation operation.
Includes all generated files, warnings encountered during generation, and performance metrics for the operation.
Constructors
-
GenerationResult({required List<
GeneratedFile> generatedFiles, required List<String> warnings, required GenerationMetrics metrics, required bool isSuccess, String? errorMessage}) -
Creates a new GenerationResult instance.
const
-
GenerationResult.failure({required String errorMessage, List<
GeneratedFile> generatedFiles = const [], List<String> warnings = const [], GenerationMetrics? metrics}) -
Creates a failed GenerationResult.
factory
-
GenerationResult.success({required List<
GeneratedFile> generatedFiles, List<String> warnings = const [], required GenerationMetrics metrics}) -
Creates a successful GenerationResult.
factory
Properties
-
assetClassFiles
→ List<
GeneratedFile> -
Gets all asset class files.
no setter
- errorMessage → String?
-
Optional error message if the operation failed.
final
-
exportFiles
→ List<
GeneratedFile> -
Gets all export files.
no setter
- fileCount → int
-
Gets the total number of files generated.
no setter
-
generatedFiles
→ List<
GeneratedFile> -
List of all files generated during the operation.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- hasWarnings → bool
-
Checks if any warnings were encountered.
no setter
- isSuccess → bool
-
Whether the generation operation completed successfully.
final
- metrics → GenerationMetrics
-
Performance metrics for the generation operation.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
warnings
→ List<
String> -
List of warning messages encountered during generation.
final
Methods
-
getSummary(
) → String - Gets a summary of the generation operation.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited