picker<T> static method

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

Implementation

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