BeagleDynamicList class
The component to generate GriView or ListView
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- BeagleDynamicList
Constructors
-
BeagleDynamicList.new({Key? key, Function? onInit, BeagleDynamicListDirection? direction, required List dataSource, required List<
TemplateManagerItem> templates, bool? isScrollIndicatorVisible, int? scrollEndThreshold, String? iteratorName, String? identifierItem, Function? onScrollEnd, List<Widget> ? children, int? spanCount, String? suffix, String? dataSourceKey, required BeagleView view, required String beagleId, num? itemAspectRatio}) -
const
Properties
- beagleId → String
-
id of the node that declares this component in Beagle
final
-
children
→ List<
Widget> ? -
Define a list of components to be displayed on this view.
final
- dataSource → List
-
dataSource it's an expression that points to a list of values used to populate the Widget.
final
- dataSourceKey → String?
-
unique property in the data source to use as key for each element. The index will be used if not provided.
final
- direction → BeagleDynamicListDirection?
-
Property responsible to customize all the flex attributes and general style configuration
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- identifierItem → String?
-
Points to a unique value present in each item of the dataSource to be used as a suffix in the ids of the template components.
final
- isScrollIndicatorVisible → bool?
-
this attribute enables or disables the scroll bar.
final
- itemAspectRatio → num?
-
the height of each item in a vertical grid view or the width in a horizontal grid view. If left unset, each
item will be a square.
final
- iteratorName → String?
-
is the context identifier of each cell.
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- onInit → Function?
-
Optional function to run once the container is created
final
- onScrollEnd → Function?
-
list of actions performed when the list is scrolled to the end.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- scrollEndThreshold → int?
-
sets the scrolled percentage of the list to trigger onScrollEnd.
final
- spanCount → int?
-
The number of columns or rows in the grid.
final
- suffix → String?
-
used for guaranteeing unique id's on multi leveled list/grid views
final
-
templates
→ List<
TemplateManagerItem> -
dataSource it's an expression that points to a list of values used to populate the Widget.
final
- view → BeagleView
-
BeagleView that spawns this component
final
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → _BeagleDynamicList -
Creates the mutable state for this widget at a given location in the tree.
override
-
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
-
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, int wrapWidth = 65}) → 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