Contribution class
One capability's contribution toward a single composed output unit.
The composer merges every contribution that shares a (kind,
canonicalKey) pair into exactly one (FR-036, INV-OP1) — a canonical
logical file path for files, a package coordinate for dependencies, a
registration key (e.g. getIt.registerSingleton<ApiClient>) for DI
registrations, and an init key (e.g. WidgetsFlutterBinding) for
initialization. dependsOnRecipeRefs feeds the composer's stable
topological ordering (R-204); it is empty for contributions with no
declared ordering dependency.
Constructors
-
Contribution({required ContributionKind kind, required String canonicalKey, required String content, required String sourceRecipeRef, List<
String> dependsOnRecipeRefs = const []}) -
const
Properties
- canonicalKey → String
-
final
- content → String
-
final
-
dependsOnRecipeRefs
→ List<
String> -
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- kind → ContributionKind
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sourceRecipeRef → String
-
final
Methods
-
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.
override