TextSpan class Null safety

Implemented types

Constructors

TextSpan({String? text, List<InlineSpan>? children, TextStyle? style, MouseCursor? mouseCursor, Callback? onTap, String? semanticsLabel, Locale? locale, bool? spellOut})
const
factory
TextSpan.fromJson(Map<String, dynamic> json)
factory

Properties

children List<InlineSpan>?
read-only
copyWith → _$$TextSpanCopyWith<_$TextSpan>
@JsonKey(ignore: true), read-only, override
hashCode int
The hash code for this object.
read-only, inherited
locale Locale?
read-only
mouseCursor MouseCursor?
read-only
onTap Callback?
read-only
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
semanticsLabel String?
read-only
spellOut bool?
read-only
style TextStyle?
read-only, override
text String?
read-only

Methods

map<TResult extends Object?>({required TResult widget(WidgetSpan value), required TResult text(TextSpan value)}) → TResult
@optionalTypeArgs, inherited
mapOrNull<TResult extends Object?>({TResult? widget(WidgetSpan value)?, TResult? text(TextSpan value)?}) → TResult?
@optionalTypeArgs, inherited
maybeMap<TResult extends Object?>({TResult widget(WidgetSpan value)?, TResult text(TextSpan value)?, required TResult orElse()}) → TResult
@optionalTypeArgs, inherited
maybeWhen<TResult extends Object?>({TResult widget(Widget child, PlaceholderAlignment alignment, TextBaseline? baseline, TextStyle? style)?, TResult text(String? text, List<InlineSpan>? children, TextStyle? style, MouseCursor? mouseCursor, Callback? onTap, String? semanticsLabel, Locale? locale, bool? spellOut)?, required TResult orElse()}) → TResult
@optionalTypeArgs, inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toJson() Map<String, dynamic>
inherited
toString() String
A string representation of this object.
inherited
when<TResult extends Object?>({required TResult widget(Widget child, PlaceholderAlignment alignment, TextBaseline? baseline, TextStyle? style), required TResult text(String? text, List<InlineSpan>? children, TextStyle? style, MouseCursor? mouseCursor, Callback? onTap, String? semanticsLabel, Locale? locale, bool? spellOut)}) → TResult
@optionalTypeArgs, inherited
whenOrNull<TResult extends Object?>({TResult? widget(Widget child, PlaceholderAlignment alignment, TextBaseline? baseline, TextStyle? style)?, TResult? text(String? text, List<InlineSpan>? children, TextStyle? style, MouseCursor? mouseCursor, Callback? onTap, String? semanticsLabel, Locale? locale, bool? spellOut)?}) → TResult?
@optionalTypeArgs, inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited