ListView class

Very simple ListView with the ability to control the updates on insert, update or remove items without rerendering everything by using a ListViewController. Set an itemBuilder and an initialItemCount to render the list. Set reverse to true, to flip the direction of the items.

Inheritance

Constructors

ListView({Key? key, required Widget itemBuilder(BuildContext context, int i), required int initialItemCount, Widget headerBuilder(BuildContext context)?, Widget footerBuilder(BuildContext context)?, ListViewController? controller, String? id, String? className, Set<String>? classes, void postCreation(Element)?})
const

Properties

classes Set<String>?
final
className String?
final
controller ListViewController?
final
footerBuilder → (Widget Function(BuildContext context)?)
final
hashCode int
The hash code for this object.
no setterinherited
headerBuilder → (Widget Function(BuildContext context)?)
final
id String?
final
initialItemCount int
final
itemBuilder Widget Function(BuildContext context, int i)
final
key Key?
finalinherited
postCreation → (void Function(Element)?)
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

createState() StateWidget<StatefulWidget>
override
inflate(BuildContext context) → void
Set this widget context, build it’s child, and render the widget, updating Context.element When overriding pay attention that inflate need to call build and render
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
render(BuildContext context) Element
Render the DOM element and add it to the context.
inherited
toString() String
A string representation of this object.
inherited

Operators

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