options<T> method

  1. @override
T options<T>({
  1. required String label,
  2. String? description,
  3. required T initial,
  4. List<Option<T>> options = const [],
})
override

Creates select field with label, description, initial value and list of options.

Implementation

@override
T options<T>({
  required String label,
  String? description,
  required T initial,
  List<Option<T>> options = const [],
}) =>
    addKnob(
      Knob(
        label: label,
        description: description,
        knobValue: SelectKnobValue(
          value: initial,
          options: options,
        ),
      ),
    );