RuntimeConfig class
A configuration class for runtime configurations, which can be used to dynamically configure a component at runtime.
- Inheritance
-
- Object
- StaticOrRuntimeParameter
- RuntimeConfig
Constructors
- RuntimeConfig.new(Logic runtimeConfig, {required String name})
- Creates a new RuntimeConfig instance.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- name → String
-
The name of the configuration, especially needed for runtime to add as
a module input.
finalinherited
- runtimeConfig → Logic?
-
The runtime configuration logic that can be used to configure the
component at runtime
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- staticConfig ↔ bool
-
The static configuration flag that indicates whether the
feature is statically configured or not.
latefinalinherited
- value → bool
-
Return a
bool
representing 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? -
Construct and return a Logic? that is a
true
input to themodule
if this is a runtime configuration signal.inherited -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
Return a string representation of the configuration, including its name.
inherited
-
tryRuntimeInput(
Module module) → Logic? -
Returns a Logic? that represents the module internalruntime input.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited