AstroRefreshIndicator constructor

const AstroRefreshIndicator({
  1. BoxFit fit = BoxFit.cover,
  2. Color backgroundColor = const Color(0xFF43378D),
  3. bool antiAliasing = true,
  4. Duration completeDuration = const Duration(milliseconds: 500),
  5. double height = 150,
  6. RefreshStyle refreshStyle = RefreshStyle.UnFollow,
  7. Key? key,
})

Creates a refresh indicator.

fit is a BoxFit for the animation

backgroundColor is a color to paint behind the animation.

antiAliasing enables/disables anti-aliasing.

height is a full animation height.

completeDuration is a duration that occurs when refresh has been completed.

refreshStyle is a RefreshIndicator display style.

Implementation

const AstroRefreshIndicator({
  this.fit = BoxFit.cover,
  this.backgroundColor = const Color(0xFF43378D),
  this.antiAliasing = true,
  Duration completeDuration = const Duration(milliseconds: 500),
  double height = 150,
  RefreshStyle refreshStyle = RefreshStyle.UnFollow,
  Key? key,
}) : super(
        key: key,
        height: height,
        completeDuration: completeDuration,
        refreshStyle: refreshStyle,
      );