getData method

Atsign? getData(
  1. bool isFollowing,
  2. String? atsign
)

Returns data with the title = atsign from either followers/following list based on isFollowing.

Implementation

Atsign? getData(bool isFollowing, String? atsign) {
  if (isFollowing) {
    return this.followingList!.firstWhereOrNull(
          (data) => data.title == atsign,
        );
  }
  return this.followersList!.firstWhereOrNull(
        (data) => data.title == atsign,
      );
}