ExpandableNotifier constructor

ExpandableNotifier({
  1. Key? key,
  2. ExpandableController? controller,
  3. bool? initialExpanded,
  4. required Widget child,
})

Implementation

ExpandableNotifier(
    {
    // An optional key
    Key? key,

    /// If the controller is not provided, it's created with the initial value of `initialExpanded`.
    this.controller,

    /// Initial expanded state. Must not be used together with [controller].
    this.initialExpanded,

    /// The child can be any widget which contains [Expandable] widgets in its widget tree.
    required this.child})
    : assert(!(controller != null && initialExpanded != null)),
      super(key: key);