setData method

dynamic setData(
  1. AtFollowsValue followsValue
)

Implementation

setData(AtFollowsValue followsValue) {
  switch (followsValue.atKey.key) {
    case PublicData.image:
    case PublicData.imagePersona:
      profilePicture = followsValue.value;
      break;
    case PublicData.firstname:
    case PublicData.firstnamePersona:
      subtitle = _isValid(followsValue.value) ? followsValue.value + ' ' : '';
      break;
    case PublicData.lastname:
    case PublicData.lastnamePersona:
      subtitle = _isValid(followsValue.value)
          ? subtitle! + followsValue.value
          : subtitle;
      break;
    default:
      break;
  }
}