StaticOrRuntimeParameter constructor

StaticOrRuntimeParameter({
  1. required String name,
  2. Logic? runtimeConfig,
  3. bool? staticConfig = false,
})

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;
  }
}