uploadUserImage method
Uploads a new user image if the user is signed in. Returns true if upload was successful.
Implementation
Future<bool> uploadUserImage(ByteData image) async {
if (_signedInUser == null) return false;
try {
var success = await caller.user.setUserImage(image);
if (success) {
_signedInUser = await caller.status.getUserInfo();
notifyListeners();
return true;
}
return false;
} catch (e) {
return false;
}
}