TriggerBuilder typedef

TriggerBuilder = Widget Function(TriggerComponentData data)

This typedef defines a method that returns a Widget that acts as the trigger for the menu to open/close.

Used by TriggerComponent as TriggerComponent.builder.

Example

TriggerComponent(
  builder: (TriggerComponentData data)
  {
    return FlatButton(
      onPressed: data.toggleMenu,
      child: Text("Click Me"),
    );
  }
);

See Also:

Implementation

typedef TriggerBuilder = Widget Function(TriggerComponentData data);