ExpanderController constructor

ExpanderController({
  1. bool initiallyExpanded = false,
})

Creates an ExpanderController with an optional initial expanded state.

By default, the controller starts in the collapsed state (initiallyExpanded = false).

Implementation

ExpanderController({bool initiallyExpanded = false})
    : expanded = ValueNotifier(initiallyExpanded);