WidgetSpan class Null safety
- Implemented types
Constructors
- WidgetSpan({required Widget child, PlaceholderAlignment alignment, TextBaseline? baseline, TextStyle? style})
-
constfactory
-
WidgetSpan.fromJson(Map<
String, dynamic> json) -
factory
Properties
- alignment → PlaceholderAlignment
-
read-only
- baseline → TextBaseline?
-
read-only
- child → Widget
-
read-only
-
copyWith
→ _$$WidgetSpanCopyWith<
_$WidgetSpan> -
@JsonKey(ignore: true), read-only, override
- hashCode → int
-
The hash code for this object.
read-only, inherited
- runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
- style → TextStyle?
-
read-only, override
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