 ```dart
Future<void> resendVerificationCode() async {
  try {
    final result = await Amplify.Auth.resendUserAttributeConfirmationCode(
      userAttributeKey: CognitoUserAttributeKey.email,
    );
    final destination = result.codeDeliveryDetails.destination;
    print('Confirmation code set to $destination');
  } on AmplifyException catch (e) {
    print(e.message);
  }
}
```
