TextSpan constructor

const TextSpan({
  1. String? text,
  2. Style? style,
  3. List<TextSpan> children = const [],
})

Initializes a text span with optional text content, styling overrides, and nested children spans.

Implementation

const TextSpan({this.text, this.style, this.children = const []});