JsonListTileBuilderModel class

Creates a list tile.

If isThreeLine is true, then subtitle must not be null.

Requires one of its ancestors to be a Material widget.

Inheritance

Constructors

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

Properties

args → Map<String, dynamic>
finalinherited
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
internalAddSemanticForOnTap → bool
Whether to add button:true to the semantics if onTap is provided. This is a temporary flag to help changing the behavior of ListTile onTap semantics.
final
isThreeLine → bool?
Whether this list tile is intended to display three lines of text.
final
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
minTileHeight → double?
The minimum height allocated for the ListTile 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
statesController → WidgetStatesController?
Represents the interactive "state" of this widget in terms of a set of WidgetStates, like WidgetState.pressed and WidgetState.focused.
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

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.
override
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

Static Methods

fromDynamic(dynamic map, {Map<String, dynamic> args = const {}, JsonWidgetRegistry? registry}) → JsonListTileBuilderModel
maybeFromDynamic(dynamic map, {Map<String, dynamic> args = const {}, JsonWidgetRegistry? registry}) → JsonListTileBuilderModel?