TriggerComponent class
Defines builder that returns a Widget that acts as a trigger.
Example
TriggerComponent(
builder: (TriggerComponentData data)
{
return FlatButton(
onPressed: data.toggleMenu,
child: Text("Click Me"),
);
}
);
See ComponentsConfiguration for more details.
See Also:
- Implementers
Constructors
- TriggerComponent({TriggerBuilder? builder})
- See TriggerBuilder.
Properties
- builder ↔ TriggerBuilder?
-
A builder method to create the trigger Widget.
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(
TriggerComponentData data) → Widget - The method uses the TriggerComponent.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