updateAvatar method
- PlatformFile? image
Updates the ChatContact.avatar
with the provided image
, or resets it
to null
.
Implementation
Future<void> updateAvatar(PlatformFile? image) async {
avatar.value = RxStatus.loading();
try {
throw UnimplementedError();
} on UnimplementedError catch (e) {
avatar.value = RxStatus.empty();
MessagePopup.error(e);
} catch (e) {
avatar.value = RxStatus.empty();
MessagePopup.error(e);
rethrow;
}
}