StaticOrRuntimeIntKnob constructor

StaticOrRuntimeIntKnob({
  1. int? staticValue = 0,
  2. int runtimeWidth = 8,
  3. String name = 'Integer Control',
})

Creates a static-or-runtime integer control.

Implementation

StaticOrRuntimeIntKnob({
  int? staticValue = 0,
  int runtimeWidth = 8,
  super.name = 'Integer Control',
})  : staticValueKnob = IntOptionalConfigKnob(value: staticValue),
      runtimeWidthKnob = PositiveIntConfigKnob(value: runtimeWidth),
      super({});