picker<T> method

DevbarVariable<T> picker<T>(
  1. String key, {
  2. String? description,
  3. required T defaultValue,
  4. required Map<T, String> options,
  5. T? fromJson(
    1. Object
    )?,
})

Implementation

DevbarVariable<T> picker<T>(
  String key, {
  String? description,
  required T defaultValue,
  required Map<T, String> options,
  T? Function(Object)? fromJson,
}) {
  return add(
    DevbarPickerVariableDefinition<T>(
      key,
      defaultValue: defaultValue,
      description: description,
      fromJson: fromJson,
      options: options,
    ),
  );
}