ExpansionWidget.autoSaveState constructor

const ExpansionWidget.autoSaveState({
  1. Key? key,
  2. required Widget titleBuilder(
    1. double animationValue,
    2. double easeInValue,
    3. bool isExpanded,
    4. dynamic toggleFunction({
      1. bool animated,
      }),
    ),
  3. bool onExpansionWillChange(
    1. bool
    )?,
  4. void onExpansionChanged(
    1. bool
    )?,
  5. required Widget content,
  6. bool initiallyExpanded = false,
  7. Alignment expandedAlignment = Alignment.center,
  8. Duration duration = const Duration(milliseconds: 200),
})

Implementation

const ExpansionWidget.autoSaveState({
  Key? key,
  required this.titleBuilder,
  this.onExpansionWillChange,
  this.onExpansionChanged,
  required this.content,
  this.initiallyExpanded = false,
  this.expandedAlignment = Alignment.center,
  this.duration = const Duration(milliseconds: 200),
})  : maintainState = true,
      onRestoreState = _restoreStateFromPageStore,
      onSaveState = _saveStateToPageStore,
      super(key: key);