defaultTagBuilder<T> static method

Widget defaultTagBuilder<T>(
  1. BuildContext context,
  2. bool enabled,
  3. FMultiValueNotifier<T> controller,
  4. FMultiSelectStyle style,
  5. T value,
  6. Widget label,
)

The default tag builder that builds a FMultiSelectTag with the given value.

Implementation

static Widget defaultTagBuilder<T>(
  BuildContext context,
  bool enabled,
  FMultiValueNotifier<T> controller,
  FMultiSelectStyle style,
  T value,
  Widget label,
) => FMultiSelectTag(
  style: style.tagStyle,
  label: label,
  onPress: enabled ? () => controller.update(value, add: false) : null,
);