picker<T extends Object> static method

Widget picker<T extends Object>({
  1. required String name,
  2. String? description,
  3. required Widget builder(
    1. BuildContext,
    2. T
    ),
  4. required Map<T, String> options,
  5. required T defaultValue,
  6. T? fromJson(
    1. Object
    )?,
  7. Key? key,
})

Implementation

static Widget picker<T extends Object>(
        {required String name,
        String? description,
        required Widget Function(BuildContext, T) builder,
        required Map<T, String> options,
        required T defaultValue,
        T? Function(Object)? fromJson,
        Key? key}) =>
    _PickerWidget<T>(
        name: name,
        description: description,
        builder: builder,
        options: options,
        defaultValue: defaultValue,
        fromJson: fromJson,
        key: key);