StaticOrRuntimeParameter class
A general configuration class for specifying parameters that are for both static or runtime configurations of a component feature.
- Implementers
Constructors
- StaticOrRuntimeParameter.new({required String name, Logic? runtimeConfig, bool? staticConfig = false})
-
Creates a new StaticOrRuntimeParameter instance. Note that
runtimeConfig
overridesstaticConfig
. Also, it is presumed thatstaticConfig
has a default value offalse
if not provided. - StaticOrRuntimeParameter.ofDynamic(dynamic config)
-
Factory constructor to create a StaticOrRuntimeParameter instance from a
dynamic.
factory
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.
final
- runtimeConfig → Logic?
-
The runtime configuration logic that can be used to configure the
component at runtime
final
- 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.
latefinal
- value → bool
-
Return a
bool
representing the value of the configuration.no setter
Methods
-
getLogic(
Module module) → Logic - Return the internal Logic signal that represents the configuration, either static or runtime.
-
getRuntimeInput(
Module module) → Logic? -
Construct and return a Logic? that is a
true
input to themodule
if this is a runtime configuration signal. -
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.
override
-
tryRuntimeInput(
Module module) → Logic? - Returns a Logic? that represents the module internalruntime input.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited