picker<T> method
Implementation
DevbarVariable<T> picker<T>(
String key, {
String? description,
required T defaultValue,
required Map<T, String> options,
T? Function(Object)? fromJson,
}) {
var variable = DevbarPickerVariable<T>(this, key,
defaultValue: defaultValue,
description: description,
fromJson: fromJson,
options: options);
_variables.add([..._variables.value, variable]);
return variable;
}