reconnectWithBillingChoiceMode method
Ends connection to BillingClient and reconnects with billingChoiceMode
.
Callers need to check if BillingChoiceMode.alternativeBillingOnly is
available by calling BillingClientWrapper.isAlternativeBillingOnlyAvailable
first.
Implementation
Future<void> reconnectWithBillingChoiceMode(
BillingChoiceMode billingChoiceMode) async {
_billingChoiceMode = billingChoiceMode;
// Ends connection and triggers OnBillingServiceDisconnected, which causes reconnect.
await client.endConnection();
await _connect();
}