AdaptiveCard.memory constructor

AdaptiveCard.memory({
  1. Key? key,
  2. Widget? placeholder,
  3. CardRegistry? cardRegistry,
  4. required Map<String, dynamic> content,
  5. String? hostConfigPath,
  6. Map<String, dynamic>? hostConfigMap,
  7. void onSubmit(
    1. Map<String, dynamic> map
    )?,
  8. void onOpenUrl(
    1. String url
    )?,
  9. bool showDebugJson = true,
  10. bool approximateDarkThemeColors = true,
  11. bool isAsync = true,
})

Implementation

AdaptiveCard.memory({
  Key? key,
  this.placeholder,
  CardRegistry? cardRegistry,
  required Map<String, dynamic> content,
  String? hostConfigPath,
  Map<String, dynamic>? hostConfigMap,
  this.onSubmit,
  this.onOpenUrl,
  this.showDebugJson = true,
  this.approximateDarkThemeColors = true,
  this.isAsync = true,
})  : assert(
        hostConfigPath != null || hostConfigMap != null,
        'Either hostConfigPath or hostConfig must be provided.',
      ),
      adaptiveCardContentProvider = MemoryAdaptiveCardContentProvider(
  content: content,
  hostConfigPath: hostConfigPath,
  hostConfig: hostConfigMap,
),
      map = null,
      hostConfig = null,
      cardRegistry = cardRegistry ?? const CardRegistry(),
      super(key: key);