@@ -167,24 +167,14 @@ class CustomRefreshIndicator extends StatefulWidget {
167167 this .offsetToArmed,
168168 this .onStateChanged,
169169 double ? containerExtentPercentageToArmed,
170- @Deprecated ('In favor of durations parameter' ) Duration ? indicatorCancelDuration,
171- @Deprecated ('In favor of durations parameter' ) Duration ? indicatorSettleDuration,
172- @Deprecated ('In favor of durations parameter' ) Duration ? indicatorFinalizeDuration,
173- @Deprecated ('In favor of durations parameter' ) Duration ? completeStateDuration,
174170 this .leadingScrollIndicatorVisible = false ,
175171 this .trailingScrollIndicatorVisible = true ,
176- RefreshIndicatorDurations durations = const RefreshIndicatorDurations (),
172+ this . durations = const RefreshIndicatorDurations (),
177173 }) : assert (
178174 containerExtentPercentageToArmed == null || offsetToArmed == null ,
179175 'Providing `extentPercentageToArmed` argument take no effect when `offsetToArmed` is provided. '
180176 'Remove redundant argument.' ,
181177 ),
182- durations = RefreshIndicatorDurations (
183- cancelDuration: indicatorCancelDuration ?? durations.cancelDuration,
184- completeDuration: completeStateDuration ?? durations.completeDuration,
185- finalizeDuration: indicatorFinalizeDuration ?? durations.finalizeDuration,
186- settleDuration: indicatorSettleDuration ?? durations.settleDuration,
187- ),
188178 // set the default extent percentage value if not provided
189179 containerExtentPercentageToArmed = containerExtentPercentageToArmed ?? defaultContainerExtentPercentageToArmed;
190180
@@ -599,9 +589,7 @@ class CustomRefreshIndicatorState extends State<CustomRefreshIndicator> with Tic
599589 );
600590
601591 final builder = widget.builder;
602- if (widget.autoRebuild ||
603- // ignore: deprecated_member_use_from_same_package
604- (builder is IndicatorBuilderDelegate && (builder as IndicatorBuilderDelegate ).autoRebuild)) {
592+ if (widget.autoRebuild) {
605593 return AnimatedBuilder (
606594 animation: controller,
607595 builder: (context, _) => builder (context, child, controller),
0 commit comments