isAvailable static method

Future<bool> isAvailable()

Checks if web authentication is available on the current platform

Implementation

static Future<bool> isAvailable() async {
  try {
    // flutter_web_auth_2 is available on all supported platforms
    return true;
  } catch (e) {
    return false;
  }
}