ListEntry class
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatelessWidget
- ListEntry
- Available Extensions
Constructors
- ListEntry({Key? key, bool isThreeLine = false, bool enabled = true, bool dense = true, bool arrow = false, String titleText = '', double arrowSize = 15, GestureTapCallback? onTap, String? heroTag, GestureTapCallback? onDoubleTap, GestureLongPressCallback? onLongPress, Widget? title, double? height, EdgeInsetsGeometry? padding, EdgeInsetsGeometry? margin, BoxDecoration? decoration, Widget? child, Color? color, TextStyle? titleStyle, Color? underlineColor, Widget? leading, Widget? subtitle, EdgeInsetsGeometry? contentPadding, bool? selected, Widget? prefix, Color? arrowColor, Widget? arrowIcon})
-
const
Properties
- arrow → bool
-
右边是否有箭头
final
- arrowColor → Color?
-
final
- arrowIcon → Widget?
-
final
- arrowSize → double
-
final
- arrowWidget → Widget
-
no setter
- child → Widget?
-
右侧widget
final
- color → Color?
-
final
- contentPadding → EdgeInsetsGeometry?
-
内边距
final
- decoration → BoxDecoration?
-
整个ListEntry装饰器
final
- defaultDecoration → Decoration?
-
no setter
- dense → bool
-
设置为true后 高度变小 默认为true
final
- enabled → bool
-
是否可点击
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- height → double?
-
高
final
- heroTag → String?
-
final
- isThreeLine → bool
-
显示三行
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- leading → Widget?
-
左侧widget
final
- listTile → Widget
-
no setter
- margin → EdgeInsetsGeometry?
-
final
- onDoubleTap → GestureTapCallback?
-
双击事件
final
- onLongPress → GestureLongPressCallback?
-
长按事件
final
- onTap → GestureTapCallback?
-
单击事件
final
- padding → EdgeInsetsGeometry?
-
final
- prefix → Widget?
-
前缀
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- selected → bool?
-
是否默认3行高度,subtitle不为空时才能使用
final
- subtitle → Widget?
-
副标题
final
- title → Widget?
-
中间内容
final
- titleStyle → TextStyle?
-
final
- titleText → String
-
final
- underlineColor → Color?
-
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
-
hero(
Widget text) → Widget -
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