isExpanded property

bool isExpanded

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:

Implementation

bool get isExpanded {
  assert(_state != null);
  return _state!._isExpanded;
}