StaticOrRuntimeParameter constructor
Creates a new StaticOrRuntimeParameter instance. Note that
runtimeConfig
overrides staticConfig
. Also, it is presumed that
staticConfig
has a default value of false
if not provided.
Implementation
StaticOrRuntimeParameter(
{required this.name, this.runtimeConfig, bool? staticConfig = false}) {
if (runtimeConfig == null && staticConfig != null) {
this.staticConfig = staticConfig;
} else {
this.staticConfig = false;
}
}