AstroRefreshIndicator constructor
const
AstroRefreshIndicator({})
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,
);