isSupported static method
Checks if the specified feature
is supported in the current implementation.
Will verify if this is supported in the platform itself:
- If
feature
is supported on Android API 21 (as an example) and the current Android API is19
then will returnfalse
- If
feature
is supported on the web if Clipboard API (as another example) available in the current browser, and the current browser doesn't support it, will returnfalse
too. For this specific example, you will need to fallback to Clipboard events on Firefox or browsers that doesn't support Clipboard API.
Always check the docs of the method you're calling to see if there are special notes.
Implementation
static Future<bool> isSupported(QuillNativeBridgeFeature feature) =>
_platform.isSupported(feature);