EChartsWebView constructor

const EChartsWebView({
  1. Key? key,
  2. required String option,
  3. bool rawOption = false,
  4. double width = 400,
  5. double height = 300,
  6. ChartThemeMode? theme,
  7. bool enableLogger = false,
  8. Widget errorBuilder(
    1. BuildContext context,
    2. Object error,
    3. StackTrace? stack
    )?,
  9. int loadTimeoutSeconds = 12,
  10. int reload = 0,
  11. JSAny? initOptions,
  12. Map<EChartsEvent, void Function(dynamic params)>? onEvents,
})

Implementation

const EChartsWebView({
  super.key,
  required this.option,
  this.rawOption = false,
  this.width = 400,
  this.height = 300,
  this.theme,
  this.enableLogger = false,
  this.errorBuilder,
  this.loadTimeoutSeconds = 12,
  this.reload = 0,
  this.initOptions,
  this.onEvents,
});