FUIRefresh constructor

const FUIRefresh({
  1. Key? key,
  2. required Widget childBuilder(
    1. BuildContext context,
    2. ScrollPhysics physics
    ),
  3. FUIRefreshController? controller,
  4. FutureOr<Object?> onRefresh()?,
  5. FutureOr<Object?> onLoad()?,
  6. bool refreshOnStart = true,
  7. bool refreshEnabled = true,
  8. bool loadEnabled = true,
  9. double loadTriggerOffset = FUITokens.gap24,
  10. FUIRefreshText? text,
  11. bool showHeaderText = true,
  12. bool showFooterText = false,
})

Implementation

const FUIRefresh({
  super.key,
  required this.childBuilder,
  this.controller,
  this.onRefresh,
  this.onLoad,
  this.refreshOnStart = true,
  this.refreshEnabled = true,
  this.loadEnabled = true,
  this.loadTriggerOffset = FUITokens.gap24,
  this.text,
  this.showHeaderText = true,
  this.showFooterText = false,
});