RuntimeConfig class
A deprecated convenience wrapper for 1-bit runtime boolean configurations.
Use StaticOrRuntimeParameter with StaticOrRuntimeParameter.runtimeConfig instead.
- Inheritance
-
- Object
- StaticOrRuntimeControl<
bool> - StaticOrRuntimeParameter
- RuntimeConfig
- Annotations
-
- @Deprecated('Use StaticOrRuntimeParameter instead.')
Constructors
- RuntimeConfig(Logic runtimeConfig, {required String name})
- Creates a new RuntimeConfig instance.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- isRuntime → bool
-
Whether this value is supplied at runtime.
no setterinherited
- name → String
-
The module input name used for runtimeConfig.
finalinherited
- runtimeConfig → Logic?
-
The runtime configuration signal, if this value is runtime-configurable.
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- staticConfig → bool
-
The static value used when runtimeConfig is null.
finalinherited
- value → bool
-
Return a
boolrepresenting the value of the configuration.no setterinherited
Methods
-
getLogic(
Module module) → Logic -
Return the internal Logic signal that represents the configuration,
either static or runtime.
inherited
-
getRuntimeInput(
Module module) → Logic? -
Constructs and returns the internal input when runtime-configured.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
resolve(
Module module, {required Logic staticToLogic(bool value)}) → Logic -
Resolves this value to Logic within
module.inherited -
toString(
) → String -
Return a string representation of the configuration, including its name.
inherited
-
tryRuntimeInput(
Module module) → Logic? -
Returns the existing internal runtime input on
module, if any.inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited