AmplifyAPI constructor
AmplifyAPI({
- List<
APIAuthProvider> authProviders = const [], - ModelProviderInterface? modelProvider,
The AWS implementation of the Amplify API category.
Implementation
factory AmplifyAPI({
List<APIAuthProvider> authProviders = const [],
ModelProviderInterface? modelProvider,
}) {
if (zIsWeb || Platform.isWindows || Platform.isMacOS || Platform.isLinux) {
throw UnsupportedError('This platform is not supported yet');
}
return AmplifyAPIMethodChannel(
authProviders: authProviders,
modelProvider: modelProvider,
);
}