setEnabled method
Sets whether the pull-to-refresh feature is enabled or not.
Officially Supported Platforms/Implementations:
- Android native WebView (Official API - SwipeRefreshLayout.setEnabled)
- iOS (Official API - UIScrollView.refreshControl)
Implementation
@override
Future<void> setEnabled(bool enabled) async {
Map<String, dynamic> args = <String, dynamic>{};
args.putIfAbsent('enabled', () => enabled);
await channel?.invokeMethod('setEnabled', args);
}