RealtimeRanking constructor
RealtimeRanking({
- Key? key,
- required RealtimeRankingBaseHeader<
RealtimeRankingItem> header, - List<
RealtimeRankingBaseHeader< ? animatedHeaders,RealtimeRankingItem> > - Duration? duration,
- Curve? curve,
- double? height,
- int? maxCount,
- bool isSelected = false,
- bool keepAlive = true,
- PageController? pageController,
- ScrollPhysics? physics,
- ValueChanged<
int> ? onPageChanged, - double? itemHeight,
- int? pagePerCount,
- 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);