Feed class

Splits the feed widget into n parts allows for simultaneous list of independent feeds.

Feed functions exactly like a feed, without using EasyRefresh. The independent feeds will load more content however will not be able to call refresh.

childBuilder - a list of builder, populate the specific index to build a custom child on that index

childBuilder - a builder that will populate the children in all feeds, is overrides by childBuilder

Supports: Posts, Polls, All Objects if childBuilder is present

Inheritance

Constructors

Feed({Key? key, required FeedLoader loader, FeedController? controller, int? lengthFactor, int? initialLength, FeedBuilder? childBuilder, IndexedFeedBuilder? indexedBuilder, double? footerHeight, Widget? placeholder, Widget? loading, bool? disableScroll, RetrievalFunction? getItemID, WidgetWrapper? wrapper, ScrollController? scrollController, bool compact = false, bool initiallyLoad = true, List? pinnedItems, bool reverse = false, int? renderCount, bool usePlaceholder = true, bool usePrimaryScrollController = false, ScrollPhysics? physics})
const

Properties

childBuilder FeedBuilder?
final
compact bool
Ensures the feed is manually loaded and does not have its own scroll controller
final
controller FeedController?
final
disableScroll bool?
Disables the scroll controller when set to true
final
footerHeight double?
defines the height to offset the body
final
getItemID RetrievalFunction?
Retrieves the item id, used to ensure the prevention of duplicate additions
final
hashCode int
The hash code for this object.
no setterinherited
indexedBuilder IndexedFeedBuilder?
final
initialLength int?
final
initiallyLoad bool
Determines if the the feed should initially load, defaulted to true
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
lengthFactor int?
final
loader FeedLoader
final
loading Widget?
Loading widget
final
physics ScrollPhysics?
Physics
final
pinnedItems List?
Items that will be pinned to the top of the list on init
final
placeholder Widget?
Loading state placeholders
final
renderCount int?
The amount of items that are rendered at once
final
reverse bool
Transform the feed into reverse
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scrollController ScrollController?
Overrides the scroll controller provided in the feed controller
final
usePlaceholder bool
Determines if the place holder should be used when the feed is empty Defaulted to true
final
usePrimaryScrollController bool
final
wrapper WidgetWrapper?
The optional function used to wrap the list view
final

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() State<Feed>
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}) 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