AdaptiveCard.asset constructor

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

Implementation

AdaptiveCard.asset({
  Key? key,
  this.placeholder,
  CardRegistry? cardRegistry,
  required String assetPath,
  required String hostConfigPath,
  this.onSubmit,
  this.onOpenUrl,
  this.showDebugJson = true,
  this.approximateDarkThemeColors = true,
  this.isAsync = true,
})  : adaptiveCardContentProvider = AssetAdaptiveCardContentProvider(
  path: assetPath,
  hostConfigPath: hostConfigPath,
),
      map = null,
      hostConfig = null,
      cardRegistry = cardRegistry ?? const CardRegistry(),
      super(key: key);