JsonListTile class

Inheritance

Constructors

JsonListTile({Map<String, dynamic> args = const {}, JsonWidgetRegistry? registry, bool autofocus = false, EdgeInsetsGeometry? contentPadding, bool? dense, bool? enableFeedback, bool enabled = true, Color? focusColor, FocusNode? focusNode, double? horizontalTitleGap, Color? hoverColor, Color? iconColor, bool isThreeLine = false, JsonWidgetData? leading, TextStyle? leadingAndTrailingTextStyle, double? minLeadingWidth, double? minVerticalPadding, MouseCursor? mouseCursor, void onFocusChange(bool)?, void onLongPress()?, void onTap()?, bool selected = false, Color? selectedColor, Color? selectedTileColor, ShapeBorder? shape, Color? splashColor, ListTileStyle? style, JsonWidgetData? subtitle, TextStyle? subtitleTextStyle, Color? textColor, Color? tileColor, JsonWidgetData? title, ListTileTitleAlignment? titleAlignment, TextStyle? titleTextStyle, JsonWidgetData? trailing, VisualDensity? visualDensity})

Properties

autofocus bool
True if this widget will be selected as the initial focus when no other node in its scope is currently focused.
final
contentPadding EdgeInsetsGeometry?
The tile's internal padding.
final
dense bool?
Whether this list tile is part of a vertically dense list.
final
enabled bool
Whether this list tile is interactive.
final
enableFeedback bool?
Whether detected gestures should provide acoustic and/or haptic feedback.
final
focusColor Color?
The color for the tile's Material when it has the input focus.
final
focusNode FocusNode?
An optional focus node to use as the focus node for this widget.
final
hashCode int
The hash code for this object.
no setterinherited
horizontalTitleGap double?
The horizontal gap between the titles and the leading/trailing widgets.
final
hoverColor Color?
The color for the tile's Material when a pointer is hovering over it.
final
iconColor Color?
Defines the default color for leading and trailing icons.
final
isThreeLine bool
Whether this list tile is intended to display three lines of text.
final
jsonWidgetArgs → dynamic
finalinherited
jsonWidgetBuilder JsonWidgetBuilder Function()
finalinherited
jsonWidgetId String
finalinherited
jsonWidgetListenVariables Set<String>
finalinherited
jsonWidgetRegistry JsonWidgetRegistry
finalinherited
jsonWidgetType String
finalinherited
leading JsonWidgetData?
A widget to display before the title.
final
leadingAndTrailingTextStyle TextStyle?
The text style for ListTile's leading and trailing.
final
minLeadingWidth double?
The minimum width allocated for the ListTile.leading widget.
final
minVerticalPadding double?
The minimum padding on the top and bottom of the title and subtitle widgets.
final
mouseCursor MouseCursor?
The cursor for a mouse pointer when it enters or is hovering over the widget.
final
onFocusChange → (void Function(bool)?)
Handler called when the focus changes.
final
onLongPress → (void Function()?)
Called when the user long-presses on this list tile.
final
onTap → (void Function()?)
Called when the user taps this list tile.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
selected bool
If this tile is also enabled then icons and text are rendered with the same color.
final
selectedColor Color?
Defines the color used for icons and text when the list tile is selected.
final
selectedTileColor Color?
Defines the background color of ListTile when selected is true.
final
shape ShapeBorder?
Defines the tile's InkWell.customBorder and Ink.decoration shape.
final
splashColor Color?
The color of splash for the tile's Material.
final
style ListTileStyle?
Defines the font used for the title.
final
subtitle JsonWidgetData?
Additional content displayed below the title.
final
subtitleTextStyle TextStyle?
The text style for ListTile's subtitle.
final
textColor Color?
Defines the text color for the title, subtitle, leading, and trailing.
final
tileColor Color?
Defines the background color of ListTile when selected is false.
final
title JsonWidgetData?
The primary content of the list tile.
final
titleAlignment ListTileTitleAlignment?
Defines how ListTile.leading and ListTile.trailing are vertically aligned relative to the ListTile's titles (ListTile.title and ListTile.subtitle).
final
titleTextStyle TextStyle?
The text style for ListTile's title.
final
trailing JsonWidgetData?
A widget to display after the title.
final
visualDensity VisualDensity?
Defines how compact the list tile's layout will be.
final

Methods

build({ChildWidgetBuilder? childBuilder, required BuildContext context, JsonWidgetRegistry? registry}) Widget
Convenience method that can build the widget this data object represents. This is the equilivant of calling: builder.build and passing this in as the data parameter.
inherited
copyWith({dynamic jsonWidgetArgs, JsonWidgetBuilder? jsonWidgetBuilder, Set<String>? jsonWidgetListenVariables, String? jsonWidgetId, JsonWidgetRegistry? jsonWidgetRegistry, String? jsonWidgetType}) JsonWidgetData
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Abstract function that concrete classes must implement. This must encode the internal data model to a JSON compatible representation.
inherited
toString() String
Returns the string encoded JSON representation for this class. This will remove all null values and empty collections from the returned string.
inherited

Operators

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