isExpanded property
Whether the ExpansionTile built with this controller is in expanded state.
This property doesn't take the animation into account. It reports true
even if the expansion animation is not completed.
See also:
- expand, which expands the ExpansionTile.
- collapse, which collapses the ExpansionTile.
- ExpansionTile.controller to create an ExpansionTile with a controller.
Implementation
bool get isExpanded {
assert(_state != null);
return _state!._isExpanded;
}