AiContextBuilder class
Transforms ProjectEvidence + RootCauseCandidates into a compact AiContext ready for a future AI provider.
Design rules:
- MUST NOT include raw diagnostics (can be thousands of lines).
- MUST be compact — AI providers have token limits.
- Top issues are capped per priority tier.
- Root causes are included in full (they are already compact summaries).
Constructors
- AiContextBuilder()
-
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
build(
{required FlutterAnalysisResult result, required List< PrioritizedGroup> prioritized, required List<RootCauseCandidate> rootCauses, String? flutterVersion, String? dartVersion, String? channel, String? javaVersion, String? androidSdkPath, String? agpVersion, String? gradleVersion, String? kotlinVersion, String? compileSdk, String? targetSdk, String? minSdk}) → AiContext - Builds a compact AiContext from analysis results.
-
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