buildAttachment method

Widget buildAttachment()

Implementation

Widget buildAttachment() {
  String attachmentType = widget.message['notification_content']
          ['attachments']['type']
      .toString()
      .toLowerCase();

  switch (attachmentType) {
    case 'image':
      return buildImage();
    case 'video':
      return buildVideo();
    case 'document':
      return buildDocument();
    default:
      return Container();
  }
}