BuildResult class

Detailed result report for an individual Flutter compilation operation.

Constructors

BuildResult({required bool success, required BuildPlatform platform, required BuildFormat format, required String commandString, String? artifactPath, String? versionName, int? buildNumber, List<String> errors = const [], List<String> warnings = const [], List<String> executedSteps = const []})
Creates a BuildResult instance.
const
BuildResult.failure({required BuildPlatform platform, required BuildFormat format, required String commandString, List<String> errors = const [], List<String> warnings = const [], List<String> executedSteps = const [], String? artifactPath, String? versionName, int? buildNumber})
Factory constructor for a failed build output.
factory
BuildResult.success({required BuildPlatform platform, required BuildFormat format, required String commandString, String? artifactPath, String? versionName, int? buildNumber, List<String> executedSteps = const [], List<String> warnings = const []})
Factory constructor for a successful build output.
factory

Properties

artifactPath → String?
Absolute or relative path to the generated artifact on disk, if produced.
final
buildNumber → int?
Numeric build number associated with the build.
final
commandString → String
Exact shell command string executed for this build.
final
errors → List<String>
Error messages encountered during compilation.
final
executedSteps → List<String>
Log of sequential execution steps recorded during the build.
final
format → BuildFormat
Compilation format produced by this build.
final
hashCode → int
The hash code for this object.
no setterinherited
platform → BuildPlatform
Target platform for which this build was executed.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
success → bool
Whether the compilation finished with an exit code of 0.
final
versionName → String?
Version name associated with the build.
final
warnings → List<String>
Warning messages encountered during compilation.
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