toggleExpanded method

void toggleExpanded(
  1. BuildContext context
)

Toggles isExpanded to the opposite state.

Implementation

void toggleExpanded(BuildContext context) {
  isExpanded ? collapse(context) : expand(context);
}