supportsPlatform method

  1. @override
bool supportsPlatform(
  1. TargetPlatform platform
)

Verifies that an AuthProvider is supported on a platform.

Implementation

@override
bool supportsPlatform(TargetPlatform platform) {
  return kIsWeb ||
      platform == TargetPlatform.android ||
      platform == TargetPlatform.iOS ||
      platform == TargetPlatform.macOS;
}