SocialEmbed constructor

const SocialEmbed({
  1. Key? key,
  2. required String htmlBody,
  3. double htmlScale = 1.0,
  4. Color? backgroundColor,
})

Provides a widget that displays a social embed script

Implementation

const SocialEmbed({
  super.key,
  required this.htmlBody,
  this.htmlScale = 1.0,
  this.backgroundColor,
}) : assert(
        htmlScale >= 0 && htmlScale <= 1,
        'htmlScale must be between 0.0 and 1.0',
      );