socialButtonStatus method
Implementation
String socialButtonStatus() {
String type = this;
if (type == FOLLOW_STATUS) {
return 'Follow';
} else if (type == FOLLOWING_STATUS || type == FRIEND_STATUS) {
return 'Following';
} else if (type == REQUESTED_STATUS) {
return 'Request Sent';
} else if (type == FOLLOW_BACK_STATUS) {
return 'Follow Back';
}
return this;
}