Text.raw constructor

Text.raw(
  1. String content
)

Implementation

factory Text.raw(String content) {
  final spans = content.split('\n').map((s) => Line.raw(s)).toList();
  return Text(spans);
}