isExpanded property

bool get isExpanded

Implementation

bool get isExpanded => _isExpanded.value ?? false;
  1. @Input('expanded')
set isExpanded (bool? value)

If true, the panel is expanded by default, if false, the panel is closed.

Implementation

@Input('expanded')
set isExpanded(bool? value) {
  if (value == isExpanded) return;
  if (value != null && value) {
    expand(byUserAction: false);
  } else {
    collapse(byUserAction: false);
  }
}