TextSpan constructor Null safety

const TextSpan(
  1. {String? text,
  2. List<InlineSpan>? children,
  3. TextStyle? style,
  4. MouseCursor? mouseCursor,
  5. Callback? onTap,
  6. String? semanticsLabel,
  7. Locale? locale,
  8. bool? spellOut}
)

Implementation

const factory TextSpan(
    {final String? text,
    final List<InlineSpan>? children,
    final TextStyle? style,
    final MouseCursor? mouseCursor,
    final Callback? onTap,
    final String? semanticsLabel,
    final Locale? locale,
    final bool? spellOut}) = _$TextSpan;