GSAccordionTitle class

Inheritance

Constructors

GSAccordionTitle.new({Key? key, required String text, GSStyle? style, Locale? locale, int? maxLines, TextOverflow? overflow, Color? selectionColor, String? semanticsLabel, bool? softWrap, StrutStyle? strutStyle, TextAlign? textAlign, TextDirection? textDirection, TextHeightBehavior? textHeightBehavior, TextScaler? textScaler, TextWidthBasis? textWidthBasis, bool bold = false, bool highlight = false, bool isTruncated = false, bool italic = false, bool strikeThrough = false, bool underline = false})
const

Properties

bold bool
If true, makes the text bold. Defaults to false.
final
hashCode int
The hash code for this object.
no setterinherited
highlight bool
If true, highlights the text. This could be used to bring attention to specific parts of the content. Defaults to false.
final
isTruncated bool
Determines if the text should be truncated with an ellipsis when it overflows. Defaults to false, meaning text will wrap by default.
final
italic bool
If true, renders the text in italic. Defaults to false.
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
locale Locale?
The locale used for the text, affecting how it's formatted and displayed.
final
maxLines int?
The maximum number of lines for the text to span. Overflowing text will be truncated based on the overflow property. If null, text can span an unlimited number of lines.
final
overflow TextOverflow?
How visual overflow should be handled. Defaults to TextOverflow.clip if not specified.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
selectionColor Color?
The color to use when painting the selection. Defaults to null, in which case the selection color of the environment is used.
final
semanticsLabel String?
An optional semantic label for the text, providing a description for screen readers.
final
softWrap bool?
Whether the text should break at soft line breaks. If false, the glyphs in the text will be positioned as if there was unlimited horizontal space.
final
strikeThrough bool
If true, adds a strikethrough line to the text. Defaults to false.
final
strutStyle StrutStyle?
The strut style to use. Strut style defines the minimum height a line can be relative to the font size of the text.
final
style GSStyle?
Custom GSConfigStyle to apply to the text. This allows for further customization of text appearance, specify using textStyle inside GSConfigStyle.
final
text String
The text content of the accordion title. This is the primary label displayed on the accordion header, serving as a summary or introduction to the accordion's collapsible content.
final
textAlign TextAlign?
How the text should be aligned horizontally.
final
textDirection TextDirection?
The directionality of the text. This decides how textAlign values like TextAlign.start and TextAlign.end are interpreted.
final
textHeightBehavior TextHeightBehavior?
The behavior of the text's height. This can be used to modify how text height is calculated.
final
textScaler TextScaler?
final
textWidthBasis TextWidthBasis?
Determines how the width of the text is measured.
final
underline bool
If true, adds an underline to the text. Defaults to false.
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, int wrapWidth = 65}) 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