isAvailable static method

Future<bool> isAvailable()

Returns true if ASWebAuthenticationSession or SFAuthenticationSession is available. Otherwise returns false.

Officially Supported Platforms/Implementations:

  • iOS
  • MacOS

Implementation

static Future<bool> isAvailable() =>
    PlatformWebAuthenticationSession.static().isAvailable();