refreshIndicator static method

RefreshIndicator refreshIndicator(
  1. {required List<Widget> widgets,
  2. required dynamic onRefresh,
  3. Color backgroundContainerColor = Colors.transparent}
)

Refresh Indicator

Implementation

static RefreshIndicator refreshIndicator(
    {required List<Widget> widgets,
    required onRefresh,
    Color backgroundContainerColor = Colors.transparent}) {
  return RefreshIndicator(
    child: scaffoldContainer(widgets,
        backgroundContainer: Container(color: backgroundContainerColor)),
    onRefresh: onRefresh as Future<void> Function(),
  );
}