InlineSpan class Null safety
- Implementers
- Annotations
-
- @freezed
Constructors
-
InlineSpan.fromJson(Map<
String, Object?> json) -
factory
-
InlineSpan.text({String? text, List<
InlineSpan> ? children, TextStyle? style, MouseCursor? mouseCursor, Callback? onTap, String? semanticsLabel, Locale? locale, bool? spellOut}) -
constfactory
- InlineSpan.widget({required Widget child, @Default(PlaceholderAlignment.bottom) PlaceholderAlignment alignment, TextBaseline? baseline, TextStyle? style})
-
constfactory
Properties
-
copyWith
→ $InlineSpanCopyWith<
InlineSpan> -
@JsonKey(ignore: true), read-only, inherited
- 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, inherited
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