isSupported static method

Future<bool> isSupported(
  1. QuillNativeBridgeFeature feature
)

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 is 19 then will return false
  • 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 return false 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);