SheenListRow class Content

One row of a SheenListGroup: an optional 30-point glyph tile in iconColor, the title with an optional subtitle under it, an optional value, then trailing (a switch) or, for a tappable row, a chevron that mirrors in right-to-left text. At least 50 points high.

Inheritance

Constructors

SheenListRow({Key? key, required String title, String? subtitle, String? icon, Color? iconColor, String? value, String? wasValue, Widget? trailing, VoidCallback? onTap, String? semanticLabel})
A row titled title.
const

Properties

hashCode → int
The hash code for this object.
no setterinherited
icon → String?
A glyph on a coloured tile at the start (SheenIcons).
final
iconColor → Color?
The tile colour; SheenTint has the usual ones.
final
key → Key?
Controls how one widget replaces another widget in the tree.
finalinherited
onTap → VoidCallback?
Called when the row is tapped; null makes the row static.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
semanticLabel → String?
What a screen reader says; the title, subtitle and value when null.
final
subtitle → String?
A second line under the title.
final
title → String
The title.
final
trailing → Widget?
A widget at the end, such as a SheenSwitch; replaces the chevron.
final
value → String?
A value before the chevron, such as the current setting.
final
wasValue → String?
On a deal, the usual value struck through under it, as a hotel room shows it ("AED 18,930").
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