ProjectOperationProfile class final
The commands one project kind publishes.
A profile is opt-in data: the product ships fixtures, and a project (or a user) may declare its own. The profile never invents a command that it did not declare.
Constructors
-
ProjectOperationProfile({required String id, required List<
ProjectOperation> operations, Map<String, String> externalPackageRoots = const <String, String>{}}) -
Declares a profile.
const
Properties
-
externalPackageRoots
→ Map<
String, String> -
External package roots referenced (linked) into a staged candidate,
keyed by the name they take inside the candidate.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → String
-
The stable id of this profile, e.g.
dart_flutter.final -
operations
→ List<
ProjectOperation> -
The declared operations, in declaration order.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
digest(
) → String - A stable digest of this profile, for evidence and cache keys.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
operation(
ProjectOperationKind kind) → ProjectOperation? -
The declared operation of
kind, or null when the profile does not declare one. -
supports(
ProjectOperationKind kind) → bool -
Whether this profile declares an operation of
kind. -
toJson(
) → Map< String, Object?> - The evidence projection of this profile.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited