BulletedListItem constructor

BulletedListItem({
  1. Text? text,
  2. List<Text> texts = const [],
  3. List<Block> children = const [],
})

Main bulleted list item constructor.

Can receive a single text or a list of texts. If both are included also both fields are added to the heading content adding first the text field. Also can receive the children of the block.

Implementation

BulletedListItem({
  Text? text,
  List<Text> texts: const [],
  List<Block> children: const [],
}) {
  this._content.addAll([
    if (text != null) text,
    ...texts,
  ]);
  this._children.addAll(children);
}