RealtimeRanking constructor

RealtimeRanking({
  1. Key? key,
  2. required RealtimeRankingBaseHeader<RealtimeRankingItem> header,
  3. List<RealtimeRankingBaseHeader<RealtimeRankingItem>>? animatedHeaders,
  4. Duration? duration,
  5. Curve? curve,
  6. double? height,
  7. int? maxCount,
  8. bool isSelected = false,
  9. bool keepAlive = true,
  10. PageController? pageController,
  11. ScrollPhysics? physics,
  12. ValueChanged<int>? onPageChanged,
  13. double? itemHeight,
  14. int? pagePerCount,
  15. Widget? trailing,
})

Implementation

RealtimeRanking({
  Key? key,
  required this.header,
  List<RealtimeRankingBaseHeader>? animatedHeaders,
  Duration? duration,
  Curve? curve,
  this.height,
  this.maxCount,
  this.isSelected = false,
  this.keepAlive = true,
  this.pageController,
  this.physics,
  this.onPageChanged,
  this.itemHeight,
  int? pagePerCount,
  this.trailing,
})  : animatedHeaders = animatedHeaders ?? [],
      duration = duration ?? const Duration(milliseconds: 500),
      curve = curve ?? Curves.fastOutSlowIn,
      pagePerCount = pagePerCount ?? 5,
      super(key: key);