TriggerFromItemComponent<T> class

Defines a Widget that acts like a button. Additionally, the button reflects the content provided as TriggerFromItemComponentData.item.

Example

TriggerFromItemComponent<String>(
  builder: (TriggerFromItemComponentData<String> data)
  {
    return FlatButton(
      onPressed: data.toggleDropDownMenu,
      child: Text(data.item),
    );
  }
);

See ComponentsConfiguration for more details.

See Also:

Properties

builder TriggerFromItemBuilder<T>?
A builder method to create a Widget that acts as a trigger. Additionally, reflects the content of TriggerFromItemComponentData.item.
getter/setter pair
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

build(TriggerFromItemComponentData<T> data) → Widget
The method uses the TriggerFromItemComponent.builder method to actually build the Widget.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited