SwipeFeed<T> constructor

const SwipeFeed<T>({
  1. Key? key,
  2. SwipeFeedBuilder<T>? childBuilder,
  3. InitialFeedState<T>? initialState,
  4. Widget? noItemsPlaceHolder,
  5. Widget? noConnectivityPlaceHolder,
  6. Widget? loadingPlaceHolder,
  7. Widget background(
    1. BuildContext context,
    2. Widget? child
    )?,
  8. Future<bool> onSwipe(
    1. double dx,
    2. double dy,
    3. DismissDirection direction,
    4. Duration duration,
    5. Future<void> (),
    6. T item,
    )?,
  9. Future<void> onConinue(
    1. T? item
    )?,
  10. bool canExpand(
    1. dynamic
    )?,
  11. EdgeInsets? padding,
  12. Widget? mask,
  13. AnimationSystemDelegate? bottomDelegate,
  14. AnimationSystemDelegate? topDelegate,
  15. AnimationSystemDelegate? backgroundDelegate,
  16. AnimationSystemController? topAnimationSystemController,
  17. AnimationSystemController? bottomAnimationSystemController,
  18. bool showLastCard = true,
  19. dynamic onLoad(
    1. T? item
    )?,
  20. Tuple3<SimulationDelegate, SwipeCardSimulation, bool>? simulationDelegate(
    1. BuildContext context,
    2. T? item,
    3. bool autoRun
    )?,
  21. required FeedLoader<T> loader,
  22. required String objectKey(
    1. T
    ),
  23. required SwipeFeedController controller,
})

Implementation

const SwipeFeed({
  Key? key,
  this.childBuilder,
  this.initialState,
  this.noItemsPlaceHolder,
  this.noConnectivityPlaceHolder,
  this.loadingPlaceHolder,
  this.background,
  this.onSwipe,
  this.onConinue,
  this.canExpand,
  this.padding,
  this.mask,
  this.bottomDelegate,
  this.topDelegate,
  this.backgroundDelegate,
  this.topAnimationSystemController,
  this.bottomAnimationSystemController,
  this.showLastCard = true,
  this.onLoad,
  this.simulationDelegate,
  required this.loader,
  required this.objectKey,
  required this.controller
}) : super(key: key);