SunnyList<T> class
A base class widget that dynamically responds to changes in a list or map
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- SunnyList
- Available Extensions
Constructors
-
SunnyList.ofList({required String id, ListTileBuilder<
T> ? itemBuilder, SunnyListDelegate<T?> ? type, required SunnyObservableList<T> list, bool? primary, bool showDividers = false, DiffEquality diffEquality = const DiffEquality(), KeyGenerator<T> ? keyGenerator, Consumer<Iterable< ? onChange, bool useStateTracker = true, bool reverse = false, bool? refreshWithPage, ScrollController? scrollController, EdgeInsets? padding, AnimationType animationType = AnimationType.size, AnimationType dismissAnimationType = AnimationType.slide, bool? shrinkWrap, SunnyListWidgetBuilder<T> >T> ? emptyState, List<SwipeActionBuilder< primarySwipeActions = const [], List<T> >SwipeActionBuilder< secondarySwipeActions = const [], SunnyListWidgetBuilder<T> >T> ? header}) -
SunnyList.ofVStream({required String id, ListTileBuilder<
T> ? itemBuilder, bool showDividers = false, KeyGenerator<T> ? keyGenerator, DiffEquality diffEquality = const DiffEquality(), SunnyListDelegate<T?> ? type, required Getter<ValueStream< vstream, bool? primary, Consumer<Iterable< >T?> >Iterable< ? onChange, bool reverse = false, bool useStateTracker = true, ScrollController? scrollController, bool? refreshWithPage, EdgeInsets? padding, AnimationType animationType = AnimationType.size, AnimationType dismissAnimationType = AnimationType.slide, bool? shrinkWrap, SunnyListWidgetBuilder<T> >T> ? emptyState, List<SwipeActionBuilder< primarySwipeActions = const [], List<T> >SwipeActionBuilder< secondarySwipeActions = const [], SunnyListWidgetBuilder<T> >T> ? header, List<T> ? start}) - Reverses the list
Properties
- animationType → AnimationType
-
The type of animation to use for new items on the list.
final
- diffEquality → DiffEquality
-
Key generator
final
- dismissAnimationType → AnimationType
-
Animation used to dismiss items.
final
-
emptyState
→ SunnyListWidgetBuilder<
T> ? -
Empty state builder
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
header
→ SunnyListWidgetBuilder<
T> ? -
final
- id → String
-
final
-
itemBuilder
→ ListTileBuilder<
T> ? -
Item builder, also handles animations
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
-
keyGenerator
→ KeyGenerator<
T> ? -
Key generator
final
-
onChange
→ Consumer<
Iterable< ?T> > -
A callback for whenever the list changes
final
- padding → EdgeInsets?
-
Padding around the outside edge of the entire list
final
- primary → bool?
-
Whether this list is the primary list
final
-
primarySwipeActions
→ List<
SwipeActionBuilder< T> > -
Swipe actions to attach to the starting edge
final
- refreshWithPage → bool?
-
final
- reverse → bool
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- scrollController → ScrollController?
-
A scroll controller to use with the list, if you need to access it
final
-
secondarySwipeActions
→ List<
SwipeActionBuilder< T> > -
Swipe actions to attach to the trailing edge
final
- showDividers → bool
-
final
- shrinkWrap → bool?
-
Whether this list is shrinkwrapped
final
-
state
→ SunnyListDelegate<
T?> -
The list that will be observed.
final
- useStateTracker → bool
-
Wraps each list item in a state tracker that will be send refreshes
final
-
vstream
→ Getter<
ValueStream< Iterable< >T?> > -
The list that will be observed.
final
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → State< SunnyList< T?> > -
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