YoutubeCommentTreeWidget constructor

YoutubeCommentTreeWidget({
  1. Key? key,
  2. required Widget parent,
  3. Color? treeColor,
  4. List<Widget> children = const <Widget>[],
})

Implementation

YoutubeCommentTreeWidget({
  super.key,
  required Widget parent,
  this.treeColor,
  List<Widget> children = const <Widget>[],
}) : super(
       children: [
         LayoutId(id: MyLayoutId.base, child: parent),
         // Tag the rest of the children
         ...children.map((child) => child),
       ],
     );