Config class

Controls which presentation layer is generated.

Exactly one PresentationLayer must be active. Validation is enforced by Parser.validateSchema so deserialization failures produce friendly user-facing messages rather than constructor exceptions.

Constructors

Config({PresentationLayer? layer, bool hasMultipleLayers = false})
const
Config.fromJson(Map<String, dynamic> json)
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
hasMultipleLayers bool
True when the JSON config selected more than one presentation layer.
final
layer PresentationLayer?
The selected state-management layer.
final
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
toMap() Map<String, dynamic>
Returns the same {'bloc', 'riverpod', 'getx'} boolean map shape that Mustache templates already depend on, so templates need no changes.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited