deletePhone method

Future<void> deletePhone(
  1. UserPhone phone
)

Deletes the provided phone from MyUser.phones.

Implementation

Future<void> deletePhone(UserPhone phone) async {
  try {
    await _myUserService.deleteUserPhone(phone);
  } catch (_) {
    MessagePopup.error('err_data_transfer'.l10n);
    rethrow;
  }
}