ArgsSocket class final

A socket for named arguments of a call, such as the arguments of MaterialApp.

The socket declares which arguments it accepts, and renders them as name: value, lines in that order. Each contribution sets one argument to an expression; items of a list argument are united, dropping repeated expressions, and two different values of a scalar argument conflict.

A list of one contributor (ArgShape.listOfOneContributor) takes the items of one module, those of its variants included, or of the template of one role. A conflict names the items of one contributor and then those of the other, to which the pipeline reports it: the one that contributed second, but between a module and the template of a role the module, whichever contributed first, since the template gives its items for every module of the app.

Inheritance

Constructors

ArgsSocket(Map<String, ArgShape> args)
Creates the kind for the arguments args.
const

Properties

args → Map<String, ArgShape>
The accepted argument names and their shapes, in the order they are rendered.
final
carriesImports → bool
Whether contributions to the socket carry Dart imports.
no setteroverride
followsOrderEdges → bool
Whether the pipeline puts the contributions of the socket in the order of the edges between their contributors (see SocketContribution).
no setterinherited
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

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