NumberedListItem constructor
Main numbered 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
NumberedListItem({
Text? text,
List<Text> texts: const [],
List<Block> children: const [],
}) {
if (text != null) {
_content.add(text);
}
_content.addAll(texts);
_children.addAll(children);
}