defaultTagBuilder<T> static method
Widget
defaultTagBuilder<T>(
- BuildContext context,
- bool enabled,
- FMultiValueNotifier<
T> controller, - FMultiSelectStyle style,
- T value,
- 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,
);