buildTypingUser method

FutureBuilder<Profile> buildTypingUser()

Implementation

FutureBuilder<Profile> buildTypingUser() {
  return FutureBuilder(
      future: getProfileDetails(typingUserid.checkNull()),
      builder: (context, data) {
        if (data.hasData) {
          return Text(
            "${getName(data.data!).checkNull()} ${AppConstants.typing}",
            //"${data.data!.name.checkNull()} typing...",
            style: typingstyle,
            maxLines: 1,
            overflow: TextOverflow.ellipsis,
          );
        } else {
          mirrorFlyLog("hasError", data.error.toString());
          return const SizedBox();
        }
      });
}