BookPage constructor

BookPage(
  1. dynamic content
)

Implementation

BookPage(dynamic content) {
  if (content is TextComponent) list = [content];
  if (content is String) list = [TextComponent(content)];
  if (content is List<TextComponent>) list = content;
}