PaymentCollection class
A bounded, lazy viewport for records with host-defined rows and states.
Supply either the current page's rows or accumulated rows. The collection does not fetch, select a state, or infer paging availability. Place it in a parent with finite width and height, not another vertical scroll view.
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatelessWidget
- PaymentCollection
Constructors
- PaymentCollection({Key? key, required int rowCount, required IndexedWidgetBuilder rowBuilder, ChildIndexGetter? findItemIndexCallback, Widget? placeholder, ScrollController? controller, ScrollPhysics? physics, EdgeInsetsGeometry? padding, double? maxContentWidth, PaymentSpace rowGap = PaymentSpace.related})
-
Creates a collection without prescribing a row, state or pager style.
const
Properties
- controller → ScrollController?
-
Optional host-owned scroll controller. The host disposes it.
final
- findItemIndexCallback → ChildIndexGetter?
-
Looks up the current index of a key on a widget from rowBuilder.
final
-
Optional content that scrolls after the rows or placeholder.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- maxContentWidth → double?
-
Optional finite positive width cap for all content, excluding padding.
Extra width is distributed equally beyond the specified side insets.
final
- padding → EdgeInsetsGeometry?
-
Scrollable insets, defaulting to PaymentSpace.group on all sides.
final
- physics → ScrollPhysics?
-
Scroll physics. Use AlwaysScrollableScrollPhysics with a host refresh
indicator to allow pull-to-refresh on short or empty pages.
final
- placeholder → Widget?
-
Scrolling content shown only when rowCount is zero.
final
- rowBuilder → IndexedWidgetBuilder
-
Builds visible and nearby rows by index, on demand.
final
- rowCount → int
-
Number of rows in the host's current snapshot.
final
- rowGap → PaymentSpace
-
Semantic spacing between adjacent rows.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
build(
BuildContext context) → Widget -
Describes the part of the user interface represented by this widget.
override
-
createElement(
) → StatelessElement -
Creates a StatelessElement to manage this widget's location in the tree.
inherited
-
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