change method
Used to change the registered information.
Change information by passing a class inheriting from ChangeAuthProvider with provider
.
Throws Exception if not signed in.
登録されている情報を変更する場合に利用します。
ChangeAuthProviderを継承したクラスをprovider
で渡すことにより、情報の変更を行ないます。
サインインされていない場合Exceptionをスローします。
Implementation
Future<Authentication> change(
ChangeAuthProvider provider,
) async {
if (!isSignedIn || !activeProviderIds.contains(provider.providerId)) {
throw Exception(
"You are not logged in with the proper AuthProvider. Please login with the [signIn] method.",
);
}
await adapter.change(
provider: provider,
onUserStateChanged: notifyListeners,
);
return this;
}