supported property

  1. @override
bool get supported
override

Whether this platform family has a native processor. Elsewhere every method throws XCameraEffectsException with code unsupported.

Implementation

@override
bool get supported =>
    !kIsWeb &&
    (defaultTargetPlatform == TargetPlatform.macOS ||
        defaultTargetPlatform == TargetPlatform.iOS ||
        defaultTargetPlatform == TargetPlatform.android);