JsonListTile constructor
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? minTileHeight,
- double? minVerticalPadding,
- MouseCursor? mouseCursor,
- void onFocusChange()?,
- 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,
Implementation
JsonListTile({
Map<String, dynamic> args = const {},
JsonWidgetRegistry? registry,
this.autofocus = false,
this.contentPadding,
this.dense,
this.enableFeedback,
this.enabled = true,
this.focusColor,
this.focusNode,
this.horizontalTitleGap,
this.hoverColor,
this.iconColor,
this.isThreeLine = false,
this.leading,
this.leadingAndTrailingTextStyle,
this.minLeadingWidth,
this.minTileHeight,
this.minVerticalPadding,
this.mouseCursor,
this.onFocusChange,
this.onLongPress,
this.onTap,
this.selected = false,
this.selectedColor,
this.selectedTileColor,
this.shape,
this.splashColor,
this.style,
this.subtitle,
this.subtitleTextStyle,
this.textColor,
this.tileColor,
this.title,
this.titleAlignment,
this.titleTextStyle,
this.trailing,
this.visualDensity,
}) : super(
jsonWidgetArgs: JsonListTileBuilderModel.fromDynamic(
{
'autofocus': autofocus,
'contentPadding': contentPadding,
'dense': dense,
'enableFeedback': enableFeedback,
'enabled': enabled,
'focusColor': focusColor,
'focusNode': focusNode,
'horizontalTitleGap': horizontalTitleGap,
'hoverColor': hoverColor,
'iconColor': iconColor,
'isThreeLine': isThreeLine,
'leading': leading,
'leadingAndTrailingTextStyle': leadingAndTrailingTextStyle,
'minLeadingWidth': minLeadingWidth,
'minTileHeight': minTileHeight,
'minVerticalPadding': minVerticalPadding,
'mouseCursor': mouseCursor,
'onFocusChange': onFocusChange,
'onLongPress': onLongPress,
'onTap': onTap,
'selected': selected,
'selectedColor': selectedColor,
'selectedTileColor': selectedTileColor,
'shape': shape,
'splashColor': splashColor,
'style': style,
'subtitle': subtitle,
'subtitleTextStyle': subtitleTextStyle,
'textColor': textColor,
'tileColor': tileColor,
'title': title,
'titleAlignment': titleAlignment,
'titleTextStyle': titleTextStyle,
'trailing': trailing,
'visualDensity': visualDensity,
...args,
},
args: args,
registry: registry,
),
jsonWidgetBuilder: () => JsonListTileBuilder(
args: JsonListTileBuilderModel.fromDynamic(
{
'autofocus': autofocus,
'contentPadding': contentPadding,
'dense': dense,
'enableFeedback': enableFeedback,
'enabled': enabled,
'focusColor': focusColor,
'focusNode': focusNode,
'horizontalTitleGap': horizontalTitleGap,
'hoverColor': hoverColor,
'iconColor': iconColor,
'isThreeLine': isThreeLine,
'leading': leading,
'leadingAndTrailingTextStyle': leadingAndTrailingTextStyle,
'minLeadingWidth': minLeadingWidth,
'minTileHeight': minTileHeight,
'minVerticalPadding': minVerticalPadding,
'mouseCursor': mouseCursor,
'onFocusChange': onFocusChange,
'onLongPress': onLongPress,
'onTap': onTap,
'selected': selected,
'selectedColor': selectedColor,
'selectedTileColor': selectedTileColor,
'shape': shape,
'splashColor': splashColor,
'style': style,
'subtitle': subtitle,
'subtitleTextStyle': subtitleTextStyle,
'textColor': textColor,
'tileColor': tileColor,
'title': title,
'titleAlignment': titleAlignment,
'titleTextStyle': titleTextStyle,
'trailing': trailing,
'visualDensity': visualDensity,
...args,
},
args: args,
registry: registry,
),
),
jsonWidgetType: JsonListTileBuilder.kType,
);