Closed
victorsanni
changed the title
Introduce Expansible and ExpansibleController, a base widget for ExpansionTile
Introduce Expansible, a base widget for ExpansionTile
| typedef ExpansibleComponentBuilder = Widget Function(BuildContext context, bool isExpanded); | ||
|
|
||
| /// The type of the callback that uses the header and body of an [Expansible] | ||
| /// widget to layout that widget. |
| /// | ||
| /// * [expand], which expands the expansible widget. | ||
| /// * [collapse], which collapses the expansible widget. | ||
| bool get isExpanded { |
| /// When the widget starts expanding, this function is called with value | ||
| /// true. When the widget starts collapsing, this function is called with | ||
| /// value false. | ||
| final ValueChanged<bool>? onExpansionChanged; |
| /// | ||
| /// * [expand], which expands the expansible widget. | ||
| /// * [collapse], which collapses the expansible widget. | ||
| bool get isExpanded { |
| /// | ||
| /// * [expand], which expands the expansible widget. | ||
| /// * [collapse], which collapses the expansible widget. | ||
| bool get isExpanded { |
Merged