FixedHeightListView 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

FixedHeightListView({Key? key, required Widget itemBuilder(BuildContext context, int i), required int initialItemCount, FixedHeightListViewController? controller, required int itemDefaultHeight, int buffer = 0, String? id, String? className, void postCreation(Element)?, Set<String>? classes})
const

Properties

buffer int
final
classes Set<String>?
final
className String?
final
controller FixedHeightListViewController?
final
hashCode int
The hash code for this object.
no setterinherited
id String?
final
initialItemCount int
final
itemBuilder Widget Function(BuildContext context, int i)
final
itemDefaultHeight int
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