expand method

void expand()

Expands the collapsed tile.

Implementation

void expand() {
  _isExpanded = true;
  _controller.forward();

  if (!mounted) return;
  widget.onExpanded?.call();
  setState(() {
    // Rebuild without widget.children.
  });
  PageStorage.of(context).writeState(context, _isExpanded);
}