DynamicWidgetContainer constructor

const DynamicWidgetContainer({
  1. Key? key,
  2. Map<String, dynamic>? responseJson,
  3. List<WidgetEntry>? entries,
  4. ColorScheme? colorScheme,
  5. OnWidgetDismiss? onDismiss,
  6. OnWidgetAction? onAction,
  7. String? userId,
  8. WidgetService? analyticsService,
  9. double spacing = 8,
  10. EdgeInsetsGeometry padding = const EdgeInsets.all(16),
  11. bool scrollable = true,
})

Implementation

const DynamicWidgetContainer({
  super.key,
  this.responseJson,
  this.entries,
  this.colorScheme,
  this.onDismiss,
  this.onAction,
  this.userId,
  this.analyticsService,
  this.spacing = 8,
  this.padding = const EdgeInsets.all(16),
  this.scrollable = true,
}) : assert(
        responseJson != null || entries != null,
        'Either responseJson or entries must be provided',
      );