PlatformPullToRefreshControllerMethod enum
List of PlatformPullToRefreshController's methods that can be used to check if they are supported or not by the current platform.
Values
- beginRefreshing → const PlatformPullToRefreshControllerMethod
-
Can be used to check if the PlatformPullToRefreshController.beginRefreshing method is supported at runtime.
Officially Supported Platforms/Implementations:
- Android WebView (Official API - SwipeRefreshLayout.setRefreshing)
- iOS WKWebView (Official API - UIRefreshControl.beginRefreshing)
- Windows WebView2 (Official API - Flutter pull-to-refresh indicator state)
Use the PlatformPullToRefreshController.isMethodSupported method to check if this method is supported at runtime.
- dispose → const PlatformPullToRefreshControllerMethod
-
Can be used to check if the PlatformPullToRefreshController.dispose method is supported at runtime.
Officially Supported Platforms/Implementations:
- Android WebView
- iOS WKWebView
- Windows WebView2
Parameters - Officially Supported Platforms/Implementations:
isKeepAlive: all platforms
Use the PlatformPullToRefreshController.isMethodSupported method to check if this method is supported at runtime.
- endRefreshing → const PlatformPullToRefreshControllerMethod
-
Can be used to check if the PlatformPullToRefreshController.endRefreshing method is supported at runtime.
Officially Supported Platforms/Implementations:
- Android WebView (Official API - SwipeRefreshLayout.setRefreshing)
- iOS WKWebView (Official API - UIRefreshControl.endRefreshing)
- Windows WebView2 (Official API - Flutter pull-to-refresh indicator state)
Use the PlatformPullToRefreshController.isMethodSupported method to check if this method is supported at runtime.
- getDefaultSlingshotDistance → const PlatformPullToRefreshControllerMethod
-
Can be used to check if the PlatformPullToRefreshController.getDefaultSlingshotDistance method is supported at runtime.
Officially Supported Platforms/Implementations:
- Android WebView (Official API - SwipeRefreshLayout.DEFAULT_SLINGSHOT_DISTANCE)
Use the PlatformPullToRefreshController.isMethodSupported method to check if this method is supported at runtime.
- isEnabled → const PlatformPullToRefreshControllerMethod
-
Can be used to check if the PlatformPullToRefreshController.isEnabled method is supported at runtime.
Officially Supported Platforms/Implementations:
- Android WebView (Official API - View.isEnabled)
- iOS WKWebView (Official API - UIScrollView.refreshControl)
- Windows WebView2 (Official API - Flutter pointer events + WebView2 ExecuteScript)
Use the PlatformPullToRefreshController.isMethodSupported method to check if this method is supported at runtime.
- isRefreshing → const PlatformPullToRefreshControllerMethod
-
Can be used to check if the PlatformPullToRefreshController.isRefreshing method is supported at runtime.
Officially Supported Platforms/Implementations:
- Android WebView (Official API - SwipeRefreshLayout.isRefreshing)
- iOS WKWebView (Official API - UIRefreshControl.isRefreshing)
- Windows WebView2 (Official API - Flutter pull-to-refresh indicator state)
Use the PlatformPullToRefreshController.isMethodSupported method to check if this method is supported at runtime.
- setAttributedTitle → const PlatformPullToRefreshControllerMethod
-
Can be used to check if the PlatformPullToRefreshController.setAttributedTitle method is supported at runtime.
Officially Supported Platforms/Implementations:
- iOS WKWebView (Official API - UIRefreshControl.attributedTitle)
Parameters - Officially Supported Platforms/Implementations:
attributedTitle: all platforms
Use the PlatformPullToRefreshController.isMethodSupported method to check if this method is supported at runtime.
- setBackgroundColor → const PlatformPullToRefreshControllerMethod
-
Can be used to check if the PlatformPullToRefreshController.setBackgroundColor method is supported at runtime.
Officially Supported Platforms/Implementations:
- Android WebView (Official API - SwipeRefreshLayout.setProgressBackgroundColorSchemeColor)
- iOS WKWebView (Official API - UIView.backgroundColor)
- Windows WebView2 (Official API - Flutter refresh indicator background color)
Parameters - Officially Supported Platforms/Implementations:
color: all platforms
Use the PlatformPullToRefreshController.isMethodSupported method to check if this method is supported at runtime.
- setColor → const PlatformPullToRefreshControllerMethod
-
Can be used to check if the PlatformPullToRefreshController.setColor method is supported at runtime.
Officially Supported Platforms/Implementations:
- Android WebView (Official API - SwipeRefreshLayout.setColorSchemeColors)
- iOS WKWebView (Official API - UIRefreshControl.tintColor)
- Windows WebView2 (Official API - Flutter CircularProgressIndicator.color)
Parameters - Officially Supported Platforms/Implementations:
color: all platforms
Use the PlatformPullToRefreshController.isMethodSupported method to check if this method is supported at runtime.
- setDistanceToTriggerSync → const PlatformPullToRefreshControllerMethod
-
Can be used to check if the PlatformPullToRefreshController.setDistanceToTriggerSync method is supported at runtime.
Officially Supported Platforms/Implementations:
- Android WebView (Official API - SwipeRefreshLayout.setDistanceToTriggerSync)
Parameters - Officially Supported Platforms/Implementations:
distanceToTriggerSync: all platforms
Use the PlatformPullToRefreshController.isMethodSupported method to check if this method is supported at runtime.
- setEnabled → const PlatformPullToRefreshControllerMethod
-
Can be used to check if the PlatformPullToRefreshController.setEnabled method is supported at runtime.
Officially Supported Platforms/Implementations:
- Android WebView (Official API - SwipeRefreshLayout.setEnabled)
- iOS WKWebView (Official API - UIScrollView.refreshControl)
- Windows WebView2 (Official API - Flutter pointer events + WebView2 ExecuteScript)
Parameters - Officially Supported Platforms/Implementations:
enabled: all platforms
Use the PlatformPullToRefreshController.isMethodSupported method to check if this method is supported at runtime.
- setIndicatorSize → const PlatformPullToRefreshControllerMethod
-
Can be used to check if the PlatformPullToRefreshController.setIndicatorSize method is supported at runtime.
Officially Supported Platforms/Implementations:
- Android WebView (Official API - SwipeRefreshLayout.setSize)
Parameters - Officially Supported Platforms/Implementations:
size: all platforms
Use the PlatformPullToRefreshController.isMethodSupported method to check if this method is supported at runtime.
- setSize → const PlatformPullToRefreshControllerMethod
-
Can be used to check if the PlatformPullToRefreshController.setSize method is supported at runtime.
Officially Supported Platforms/Implementations:
- Android WebView (Official API - SwipeRefreshLayout.setSize)
Parameters - Officially Supported Platforms/Implementations:
size: all platforms
Use the PlatformPullToRefreshController.isMethodSupported method to check if this method is supported at runtime.
- setSlingshotDistance → const PlatformPullToRefreshControllerMethod
-
Can be used to check if the PlatformPullToRefreshController.setSlingshotDistance method is supported at runtime.
Officially Supported Platforms/Implementations:
- Android WebView (Official API - SwipeRefreshLayout.setSlingshotDistance)
Parameters - Officially Supported Platforms/Implementations:
slingshotDistance: all platforms
Use the PlatformPullToRefreshController.isMethodSupported method to check if this method is supported at runtime.
- setStyledTitle → const PlatformPullToRefreshControllerMethod
-
Can be used to check if the PlatformPullToRefreshController.setStyledTitle method is supported at runtime.
Officially Supported Platforms/Implementations:
- iOS WKWebView (Official API - UIRefreshControl.attributedTitle)
Parameters - Officially Supported Platforms/Implementations:
attributedTitle: all platforms
Use the PlatformPullToRefreshController.isMethodSupported method to check if this method is supported at runtime.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- index → int
-
A numeric identifier for the enumerated value.
no setterinherited
- name → String
-
Available on Enum, provided by the EnumName extension
The name of the enum value.no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
-
values
→ const List<
PlatformPullToRefreshControllerMethod> - A constant List of the values in this enum, in order of their declaration.