ListView class Null safety

Creates a scrollable, linear array of widgets from an explicit List.

Inheritance

Constructors

ListView({Key? key, String? style, String? classAttribute, LayoutType layoutType = LayoutType.contain, Axis scrollDirection = Axis.vertical, required List<Widget> children})
const
ListView.builder({Key? key, String? style, String? classAttribute, LayoutType layoutType = LayoutType.contain, Axis scrollDirection = Axis.vertical, int? itemCount, required IndexedWidgetBuilder? itemBuilder})
Creates a scrollable, linear array of widgets that are created on demand.
const

Properties

children List<Widget>
Child widgets(will be built all at once).
final
classAttribute String?
The classes attribute specifies one or more class names for dom node.
final
correspondingTag DomTagType
Corresponding HTML tag to use to render this widget
@nonVirtual, read-only, override
hashCode int
The hash code for this object.
read-only, inherited
initialKey Key
final, inherited
isListViewBuilder bool
Whether list is a Lazy builder.
final
itemBuilder IndexedWidgetBuilder?
final
itemCount int?
final
layoutType LayoutType
Type of list view layout.
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
scrollDirection Axis
Scroll direction of ListView.
final
style String?
The style attribute for inline CSS.
final
widgetCaptureEventListeners Map<DomEventType, EventCallback?>
Events that this widget is listening to in capturing phase.
read-only, inherited
widgetChildren List<Widget>
Child widgets if any.
read-only, override
widgetEventListeners Map<DomEventType, EventCallback?>
Events that this widget is listening to.
read-only, inherited
widgetType String
Type of widget.
@nonVirtual, read-only, override

Methods

createConfiguration() WidgetConfiguration
Create widget's configuration.
@nonVirtual, override
createRenderObject(BuildContext context) RenderObject
Called when framework needs a RenderObject for current widget.
@nonVirtual, override
isConfigurationChanged(WidgetConfiguration oldConfiguration) bool
Whether configuration has changed.
@nonVirtual, override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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