picker<T> method
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,
),
);
}