loadProfile method

Future<void> loadProfile(
  1. String userId
)

Implementation

Future<void> loadProfile(String userId) async {
  try {
    errorMessage.value = null;
    isLoading.value = true;
    profile.value = await _getProfileUseCase(userId);
  } catch (e) {
    errorMessage.value = e.toString();
  } finally {
    isLoading.value = false;
  }
}