PrismRefreshIndicator constructor

const PrismRefreshIndicator({
  1. Key? key,
  2. required Future<void> onRefresh(),
  3. required Widget child,
  4. Color? color,
  5. Color? backgroundColor,
  6. double displacement = 40.0,
  7. String semanticsLabel = 'Refresh',
})

Creates a refresh indicator.

Implementation

const PrismRefreshIndicator({
  super.key,
  required this.onRefresh,
  required this.child,
  this.color,
  this.backgroundColor,
  this.displacement = 40.0,
  this.semanticsLabel = 'Refresh',
});