TriggerFromItemBuilder<T> typedef
TriggerFromItemBuilder<T> =
Widget Function(TriggerFromItemComponentData<T> data)
This typedef defines a method that returns a Widget that acts as a trigger for the menu to open/close, additionally, the content of the button reflects a TriggerFromItemComponentData.item as defined by the function body.
Used by TriggerFromItemComponent as TriggerFromItemComponent.builder.
Example
TriggerFromItemComponent<String>(
builder: (TriggerFromItemComponentData<String> data)
{
return FlatButton(
onPressed: data.toggleDropDownMenu,
child: Text(data.item),
);
}
);
See Also:
Implementation
typedef TriggerFromItemBuilder<T> = Widget Function(
TriggerFromItemComponentData<T> data);