ValueSocket<V extends Object> class final

A socket for one value merged from all contributions, such as the minimum iOS version of the app.

Values carry no imports.

Inheritance

Constructors

ValueSocket({required MergePolicy<V> policy, required String renderer(V value), bool required = false})
Creates the kind with a merge policy and a renderer of the merged value; set required if the socket cannot render without a value.
const

Properties

carriesImports → bool
Whether contributions to the socket carry Dart imports.
no setteroverride
hashCode → int
The hash code for this object.
no setterinherited
policy → MergePolicy<V>
How two contributed values merge.
final
required → bool
Whether the socket needs at least one contribution, such as a minimum version that the template cannot leave empty.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

accepts(Object? value) → bool
Whether value can be contributed to the socket.
merge(Iterable<SocketContribution> contributions, {required String key}) → V?
Merges the values of contributions with the policy, or returns null if there are none.
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