picker<T> static method

DevbarVariableDefinition<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

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