AdaptiveCard.memory constructor
AdaptiveCard.memory({})
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);