isEnabled method
Returns true
is pull-to-refresh feature is enabled, otherwise false
.
Officially Supported Platforms/Implementations:
- Android native WebView (Official API - View.isEnabled)
- iOS (Official API - UIScrollView.refreshControl)
Implementation
@override
Future<bool> isEnabled() async {
Map<String, dynamic> args = <String, dynamic>{};
return await channel?.invokeMethod<bool>('isEnabled', args) ?? false;
}