MatrixApp class final
An app of the matrix: the modules to ask for, which name every module of the app so that no question is left, and the options of its roles.
Constructors
Properties
-
everyModuleWith
→ List<
ModuleId> ? -
For an app with every module, one of those that the contract harness
builds for each combination of the providers of the roles that take
one (see
ContractHarness.casesOfAll): the providers of its roles that take one other than the first registered provider of each, in the order of the roles, such as[riverpod]for the app with riverpod rather than bloc, and none for the app with the first provider of every role. The providers of a role that takes many, which every app with every module has, set no app apart.nullfor any other app of the matrix.final - hashCode → int
-
The hash code for this object.
no setterinherited
- hook → RoleHookRequest?
-
The data and roles of the app, as for the hooks of its roles, with
the choices that the roles made when the contract harness rendered
it, which
smf createmakes the same with the roleOptions;nullfor an app that the harness did not build.final -
modes
→ Map<
String, String> -
The values of the mode options (see
RoleOption.mode) that set the app apart from the app with the same modules and the first value of each, by the name of the option, such as{'clock-hours': '12'}: those that its case of the contract harness gives (seeContractHarness.casesOfRoleandContractHarness.casesOfModes), which are among the roleOptions too. None for the app of any other case, whose mode options have their first value, or the value that the options of every app of the matrix give them.final -
modules
→ List<
ModuleId> -
The modules of the app.
final
- name → String
-
The case of the contract harness that the app comes from.
final
-
roleOptions
→ Map<
String, String?> -
The values of role options by name, which
smf creategets as its options (createArguments).final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
warnings
→ List<
String> -
The codes of the warnings about what the app is made of that
smf createreports for the app (seeSmfIssue.code), such asrouter.no_startfor an app that no route starts, sorted and each once: those that the contract harness found when it built the app (seeContractResult.warnings). None for an app that the harness did not build.final
Methods
-
createArguments(
String appName, String directory) → List< String> -
The arguments of
smf createthat generate the app asappNameindirectory, as CI does: without questions, external setup or the fulldart fix, and failing instead of leaving out a module and on a warning about the app other than its warnings. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
packageName(
String base) → String -
The name of the package of this app with every module among the apps
generated as
base:baseand the ids of everyModuleWith after it, such asstart_appandstart_app_riverpod. So the app keeps its name when another role gets a second provider, and so do the ids that come from it, by which an external service may know the app. -
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited