DiscoveryContent.fromContent constructor

DiscoveryContent.fromContent(
  1. Content content,
  2. Uri sourceUri
)

Creates a new DiscoveryContent object from regular Content and a sourceUri.

Implementation

DiscoveryContent.fromContent(Content content, this.sourceUri)
    : super(content.type, content.body);