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