NextLoadingHelper constructor

const NextLoadingHelper({
  1. Key? key,
  2. required bool isLoading,
  3. bool ignoreWhileLoading = true,
  4. AnimatedSwitcherTransitionBuilder transitionBuilder = AnimatedSwitcher.defaultTransitionBuilder,
  5. required Widget child,
  6. AnimatedSwitcherLayoutBuilder layoutBuilder = AnimatedSwitcher.defaultLayoutBuilder,
  7. Curve switchOutCurve = Curves.linear,
  8. Curve switchInCurve = Curves.linear,
  9. Widget? loadingWidget,
  10. Duration duration = const Duration(milliseconds: 200),
  11. Duration? reverseDuration,
})

Implementation

const NextLoadingHelper(
    {Key? key,
    required this.isLoading,
    this.ignoreWhileLoading = true,
    this.transitionBuilder = AnimatedSwitcher.defaultTransitionBuilder,
    required this.child,
    this.layoutBuilder = AnimatedSwitcher.defaultLayoutBuilder,
    this.switchOutCurve = Curves.linear,
    this.switchInCurve = Curves.linear,
    this.loadingWidget,
    this.duration = const Duration(milliseconds: 200),
    this.reverseDuration})
    : super(key: key);