MExpandableNotifier constructor

const MExpandableNotifier({
  1. Key? key,
  2. MExpandableController? controller,
  3. bool? initialExpanded,
  4. required Widget child,
})

Implementation

const MExpandableNotifier(
    {
    // An optional key
    super.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));