AgentSources constructor

const AgentSources({
  1. Key? key,
  2. required List<AgentSource> sources,
  3. String labelBuilder(
    1. int count
    )?,
  4. bool? expanded,
  5. bool defaultExpanded = false,
  6. ValueChanged<bool>? onExpandedChanged,
  7. ValueChanged<AgentSource>? onSourcePressed,
  8. AgentGlyphBuilder? glyphBuilder,
  9. DisclosureStyler disclosureStyle = const DisclosureStyler.create(),
  10. ButtonStyler sourceStyle = const ButtonStyler.create(),
  11. AgentSourcesStyler style = const AgentSourcesStyler.create(),
  12. AgentSourcesSpec? styleSpec,
})

Creates the sources line for sources.

Implementation

const AgentSources({
  super.key,
  required this.sources,
  this.labelBuilder,
  this.expanded,
  this.defaultExpanded = false,
  this.onExpandedChanged,
  this.onSourcePressed,
  this.glyphBuilder,
  this.disclosureStyle = const DisclosureStyler.create(),
  this.sourceStyle = const ButtonStyler.create(),
  this.style = const AgentSourcesStyler.create(),
  this.styleSpec,
});