MiuixPullToRefresh constructor

const MiuixPullToRefresh({
  1. Key? key,
  2. required bool isRefreshing,
  3. required VoidCallback onRefresh,
  4. required Widget child,
  5. MiuixPullToRefreshController? controller,
  6. EdgeInsetsGeometry contentPadding = EdgeInsets.zero,
  7. MiuixScrollBehavior? topAppBarScrollBehavior,
  8. Color color = MiuixPullToRefreshDefaults.color,
  9. double circleSize = MiuixPullToRefreshDefaults.circleSize,
  10. List<String> refreshTexts = MiuixPullToRefreshDefaults.refreshTexts,
  11. TextStyle refreshTextStyle = MiuixPullToRefreshDefaults.refreshTextStyle,
  12. ValueChanged<double>? onPullProgress,
})

Implementation

const MiuixPullToRefresh({
  super.key,
  required this.isRefreshing,
  required this.onRefresh,
  required this.child,
  this.controller,
  this.contentPadding = EdgeInsets.zero,
  this.topAppBarScrollBehavior,
  this.color = MiuixPullToRefreshDefaults.color,
  this.circleSize = MiuixPullToRefreshDefaults.circleSize,
  this.refreshTexts = MiuixPullToRefreshDefaults.refreshTexts,
  this.refreshTextStyle = MiuixPullToRefreshDefaults.refreshTextStyle,
  this.onPullProgress,
}) : assert(circleSize >= 0);