JidoujishoTag class

A tag that can be clicked on for more information. Used in dictionary entries to indicate information about a definition or term.

Inheritance

Constructors

JidoujishoTag({required String text, required Color backgroundColor, String? message, String? trailingText, IconData? icon, Color foregroundColor = Colors.white, double? iconSize, TextStyle? style, Key? key})
Create a tag that can be clicked on for more information.
const

Properties

backgroundColor Color
The color of the tag background.
final
foregroundColor Color
The color of the icon and text.
final
hashCode int
The hash code for this object.
read-onlyinherited
icon IconData?
The icon to display on the tag.
final
iconSize double?
The display size for the icon.
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
message String?
The message to show when the tag has been clicked on.
final
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
style TextStyle?
Text style to use for the text of the tag.
final
text String
The text to display on the tag.
final
trailingText String?
An extra bit to put on a rectangle on the right of the message.
final

Methods

build(BuildContext context) Widget
Describes the part of the user interface represented by this widget.
override
createElement() StatelessElement
Creates a StatelessElement to manage this widget's location in the tree.
inherited
debugDescribeChildren() List<DiagnosticsNode>
Returns a list of DiagnosticsNode objects describing this node's children.
inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep.
inherited
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) String
A string representation of this object.
inherited
toStringDeep({String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a string representation of this node and its descendants.
inherited
toStringShallow({String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a one-line detailed description of the object.
inherited
toStringShort() String
A short, textual description of this widget.
inherited

Operators

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