expand method

void expand()

Expands the Expansible that was built with this controller.

If the widget is already in the expanded state (see isExpanded), calling this method has no effect.

Calling this method may cause the Expansible to rebuild, so it may not be called from a build method.

Calling this method will notify registered listeners of this controller that the expansion state has changed.

See also:

  • collapse, which collapses the expansible widget.
  • isExpanded to check whether the expansible widget is expanded.

Implementation

void expand() {
  _setExpansionState(true);
}