MExpandableNotifier constructor
const
MExpandableNotifier({
- Key? key,
- MExpandableController? controller,
- bool? initialExpanded,
- 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));