SwipeFeedCard<T> class

Inheritance

Constructors

SwipeFeedCard({Key? key, required String objectKey(T), required SwipeFeedCardController controller, required Tuple2<dynamic, Store<SwipeFeedCardState>> item, required bool isLast, required int index, Tuple3<SimulationDelegate, SwipeCardSimulation, bool>? simulationDelegate()?, ConcreteCubit<List<AnimationSystemController>>? bloc, Widget? mask, Widget? loadingPlaceHolder, EdgeInsets? padding, bool canExpand(T)?, SwipeFeedBuilder<T>? childBuilder, Widget background(BuildContext context, Widget? child)?, dynamic onPanUpdate(double dx, double dy, bool trustSimulationRunning)?, Future<bool> onSwipe(double dx, double dy, Future<void> (), DismissDirection direction, Duration duration)?, Future<void> onContinue()?, AnimationSystemController? topAnimationSystemController, AnimationSystemController? bottomAnimationSystemController, AnimationSystemDelegate? backgroundDelegate, dynamic onLoad(T)?})
const

Properties

background → (Widget Function(BuildContext context, Widget? child)?)
Widget representing the last card in the list "Background Card"
final
backgroundDelegate AnimationSystemDelegate?
Background card without a child, delegate
final
bloc ConcreteCubit<List<AnimationSystemController>>?
final
bottomAnimationSystemController AnimationSystemController?
Controls the bottom animation
final
canExpand → (bool Function(T)?)
If the card can take up the screen and go passed its bounds
final
childBuilder SwipeFeedBuilder<T>?
Child of the card
final
controller SwipeFeedCardController
Init controller
final
hashCode int
The hash code for this object.
no setterinherited
index int
final
isLast bool
If it is the last null card in the list
final
item → Tuple2<dynamic, Store<SwipeFeedCardState>>
Current item dispatched from the loader
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
loadingPlaceHolder Widget?
Loading widget of the card, is called when the feed is in a loading state
final
mask Widget?
The color of the mask of the next poll in the list
final
objectKey String Function(T)
Object Key
final
onContinue → (Future<void> Function()?)
After forward animation has been called
final
onLoad → (dynamic Function(T)?)
final
onPanUpdate → (dynamic Function(double dx, double dy, bool trustSimulationRunning)?)
Callback for the updating position of the current card
final
onSwipe → (Future<bool> Function(double dx, double dy, Future<void> (), DismissDirection direction, Duration duration)?)
Callback for when the card has been dismissed from the screen before forward animation
final
padding EdgeInsets?
Additional padding
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
simulationDelegate → (Tuple3<SimulationDelegate, SwipeCardSimulation, bool>? Function()?)
Simulation Delegate
final
topAnimationSystemController AnimationSystemController?
Controls the top animation
final

Methods

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