ListItem<T> class

Inheritance

Constructors

ListItem.new({Key? key, required String title, Widget? titleRightIcon, CrossAxisAlignment titleCrossAlignment = CrossAxisAlignment.start, String? hintText, T? rightTitle, bool withTrail = false, bool withLine = true, dynamic onTap()?, T? subTitle, bool isRequire = false, int titleFlex = 1, int? titleMaxLines, int rightFlex = 2, bool isError = false, Widget? rightIcon = const Icon(Icons.keyboard_arrow_down, color: Color(0xffc8c9cc), size: 16.0), TextStyle titleStyle = const TextStyle(color: Color(0xff323233), fontSize: 14, height: 1.5), TextStyle rightValueStyle = const TextStyle(color: Color(0xff323233), fontSize: 15, height: 1.5), EdgeInsets padding = const EdgeInsets.symmetric(vertical: 10)})

Properties

hashCode int
The hash code for this object.
no setterinherited
hintStyle TextStyle
final
hintText String?
final
isError bool
final
isRequire bool
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
onTap → dynamic Function()?
final
padding EdgeInsets
final
requireStyle TextStyle
final
rightFlex int
final
rightIcon Widget?
final
rightTitle → T?
final
rightValueStyle TextStyle
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
subTitle → T?
final
title String
final
titleCrossAlignment CrossAxisAlignment
final
titleFlex int
final
titleMaxLines int?
final
titleRightIcon Widget?
final
titleStyle TextStyle
final
withLine bool
final
withTrail bool
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