isRefreshing method
Returns whether a refresh operation has been triggered and is in progress.
Officially Supported Platforms/Implementations:
- Android native WebView (Official API - SwipeRefreshLayout.isRefreshing)
- iOS (Official API - UIRefreshControl.isRefreshing)
Implementation
@override
Future<bool> isRefreshing() async {
Map<String, dynamic> args = <String, dynamic>{};
return await channel?.invokeMethod<bool>('isRefreshing', args) ?? false;
}