StyledTextIconTag class Null safety

The class with which you can specify the icon for the tag.

Inheritance

Constructors

StyledTextIconTag(IconData icon, {Color? color, double? size, Color? backgroundColor, PlaceholderAlignment alignment = PlaceholderAlignment.middle, TextBaseline? baseline = TextBaseline.alphabetic, StyledTextTagActionCallback? onTap})

Properties

alignment PlaceholderAlignment
Aligning the icon relative to the text
final
backgroundColor Color?
Icon background color
final
baseline TextBaseline?
The TextBaseline to align against when using ui.PlaceholderAlignment.baseline, ui.PlaceholderAlignment.aboveBaseline, and ui.PlaceholderAlignment.belowBaseline. [...]
final
color Color?
Icon color
final
hashCode int
The hash code for this object. [...]
read-only, inherited
icon IconData
Icon to insert into text
final
onTap StyledTextTagActionCallback?
Called when the text is tapped or otherwise activated.
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
size double?
Icon size
final

Methods

createRecognizer(String? text, Map<String?, String?> attributes) GestureRecognizer?
inherited
createSpan({required BuildContext context, String? text, List<InlineSpan>? children, required Map<String?, String?> attributes, GestureRecognizer? recognizer}) InlineSpan
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
A string representation of this object. [...]
inherited

Operators

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