TwoLevelSublist constructor

const TwoLevelSublist({Key key, Widget leading, @required Widget title, Color backgroundColor, ValueChanged<bool> onOpenChanged, List<Widget> children: const [] })

Creates an item in a two-level list that can expand and collapse.

Implementation

const TwoLevelSublist({
  Key key,
  this.leading,
  @required this.title,
  this.backgroundColor,
  this.onOpenChanged,
  this.children = const <Widget>[],
}) : super(key: key);