AiContext class

Compact structured context ready for a future AI provider.

Contains environment info, analyzer summary, top issues by priority, and root cause candidates. Does NOT contain raw diagnostics.

Constructors

AiContext({required Map<String, String?> projectInfo, required Map<String, String?> environmentInfo, required Map<String, String?> androidInfo, required Map<String, int> analyzerSummary, required List<IssueSummary> topCritical, required List<IssueSummary> topHigh, required List<IssueSummary> topMedium, required List<RootCauseSummary> rootCauses})
const

Properties

analyzerSummary Map<String, int>
Total, errors, warnings, infos — never the raw list.
final
androidInfo Map<String, String?>
Android toolchain (AGP, Gradle, Kotlin, SDK levels).
final
environmentInfo Map<String, String?>
Host environment (Java, Android SDK).
final
hashCode int
The hash code for this object.
no setterinherited
projectInfo Map<String, String?>
Project-level metadata (Flutter, Dart, channel).
final
rootCauses List<RootCauseSummary>
Root cause candidates.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
topCritical List<IssueSummary>
Top critical rule groups (max 5).
final
topHigh List<IssueSummary>
Top high-priority rule groups (max 5).
final
topMedium List<IssueSummary>
Top medium-priority rule groups (max 5).
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() Map<String, Object?>
Converts to a flat map — useful for JSON serialization to an AI provider.
toString() String
A string representation of this object.
inherited

Operators

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