SwipeFeed<T> constructor
const
SwipeFeed<T> ({
- Key? key,
- SwipeFeedBuilder<
T> ? childBuilder, - InitialFeedState<
T> ? initialState, - Widget? noItemsPlaceHolder,
- Widget? noConnectivityPlaceHolder,
- Widget? loadingPlaceHolder,
- Widget background(
- BuildContext context,
- Widget? child
- Future<
bool> onSwipe(- double dx,
- double dy,
- DismissDirection direction,
- Duration duration,
- Future<
void> (), - T item,
- Future<
void> onConinue(- T? item
- bool canExpand(
- dynamic
- EdgeInsets? padding,
- Widget? mask,
- AnimationSystemDelegate? bottomDelegate,
- AnimationSystemDelegate? topDelegate,
- AnimationSystemDelegate? backgroundDelegate,
- AnimationSystemController? topAnimationSystemController,
- AnimationSystemController? bottomAnimationSystemController,
- bool showLastCard = true,
- dynamic onLoad(
- T? item
- Tuple3<
SimulationDelegate, SwipeCardSimulation, bool> ? simulationDelegate(- BuildContext context,
- T? item,
- bool autoRun
- required FeedLoader<
T> loader, - required String objectKey(
- T
- 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);