JsonListTileBuilder class
Builder that can build an ListTile widget. See the fromDynamic for the format.
- Inheritance
-
- Object
- JsonWidgetBuilder
- JsonListTileBuilder
Constructors
- JsonListTileBuilder.new({required bool autofocus, EdgeInsetsGeometry? contentPadding, bool? dense, bool? enableFeedback, required bool enabled, Color? focusColor, FocusNode? focusNode, double? horizontalTitleGap, Color? hoverColor, Color? iconColor, required bool isThreeLine, JsonWidgetData? leading, double? minLeadingWidth, double? minVerticalPadding, MouseCursor? mouseCursor, VoidCallback? onLongPress, VoidCallback? onTap, required bool selected, Color? selectedColor, Color? selectedTileColor, ShapeBorder? shape, ListTileStyle? style, JsonWidgetData? subtitle, Color? textColor, Color? tileColor, JsonWidgetData? title, JsonWidgetData? trailing, VisualDensity? visualDensity})
Properties
- autofocus → bool
-
final
- contentPadding → EdgeInsetsGeometry?
-
final
- dense → bool?
-
final
- enabled → bool
-
final
- enableFeedback → bool?
-
final
- focusColor → Color?
-
final
- focusNode → FocusNode?
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- horizontalTitleGap → double?
-
final
- hoverColor → Color?
-
final
- iconColor → Color?
-
final
- isThreeLine → bool
-
final
- leading → JsonWidgetData?
-
final
- minLeadingWidth → double?
-
final
- minVerticalPadding → double?
-
final
- mouseCursor → MouseCursor?
-
final
- numSupportedChildren → int
-
finalinherited
- onLongPress → VoidCallback?
-
final
- onTap → VoidCallback?
-
final
- preferredSizeWidget → bool
-
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- selected → bool
-
final
- selectedColor → Color?
-
final
- selectedTileColor → Color?
-
final
- shape → ShapeBorder?
-
final
- style → ListTileStyle?
-
final
- subtitle → JsonWidgetData?
-
final
- textColor → Color?
-
final
- tileColor → Color?
-
final
- title → JsonWidgetData?
-
final
- trailing → JsonWidgetData?
-
final
- visualDensity → VisualDensity?
-
final
Methods
-
build(
{required ChildWidgetBuilder? childBuilder, required BuildContext context, required JsonWidgetData data}) → Widget -
Builds the widget. If there are dynamic keys on the
data
object, and the widget is not a PreferredSizeWidget, then the returned widget will be wrapped by a stateful widget that will rebuild if any of the dynamic args change in value.inherited -
buildCustom(
{ChildWidgetBuilder? childBuilder, required BuildContext context, required JsonWidgetData data, Key? key}) → Widget -
Custom builder that subclasses must override and implement to return the
actual Widget to be placed on the tree.
override
-
getChild(
JsonWidgetData? data, {int index = 0}) → JsonWidgetData -
Returns a non-null child for widgets that must always have child widgets.
This allows the widget to be built and rendered even if the child is
missing.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
remove(
JsonWidgetData data) → void -
Called when a JSON widget is removed from the tree due to a conditional.
Custom widgets may need to implement this to clean up values that may have
been placed on the JsonWidgetRegistry by the widget.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
fromDynamic(
dynamic map, {JsonWidgetRegistry? registry}) → JsonListTileBuilder? - Builds the builder from a Map-like dynamic structure. This expects the JSON format to be of the following structure:
Constants
- kNumSupportedChildren → const int
- type → const String