build method

  1. @override
Widget build(
  1. BuildContext context,
  2. int index,
  3. ScrollProgress info
)
override

Implementation

@override
Widget build(BuildContext context, int index, ScrollProgress info) {
  calculate(index, info);

  return Transform.scale(
    scale: 1 + ((maxScale - 1) * scale),
    child: builder == null
        ? transform!.build(context, index, info)
        : builder!(context, scale),
  );
}