AgentSourcesSpec constructor

const AgentSourcesSpec({
  1. StyleSpec<FlexBoxSpec>? trigger,
  2. StyleSpec<IconSpec>? icon,
  3. StyleSpec<TextSpec>? label,
  4. StyleSpec<IconSpec>? indicator,
  5. StyleSpec<WrapBoxSpec>? list,
  6. StyleSpec<BoxSpec>? source,
  7. StyleSpec<TextSpec>? sourceLabel,
})

Creates a spec; every slot defaults to empty.

Implementation

const AgentSourcesSpec({
  StyleSpec<FlexBoxSpec>? trigger,
  StyleSpec<IconSpec>? icon,
  StyleSpec<TextSpec>? label,
  StyleSpec<IconSpec>? indicator,
  StyleSpec<WrapBoxSpec>? list,
  StyleSpec<BoxSpec>? source,
  StyleSpec<TextSpec>? sourceLabel,
}) : trigger = trigger ?? const StyleSpec(spec: FlexBoxSpec()),
     icon = icon ?? const StyleSpec(spec: IconSpec()),
     label = label ?? const StyleSpec(spec: TextSpec()),
     indicator = indicator ?? const StyleSpec(spec: IconSpec()),
     list = list ?? const StyleSpec(spec: WrapBoxSpec()),
     source = source ?? const StyleSpec(spec: BoxSpec()),
     sourceLabel = sourceLabel ?? const StyleSpec(spec: TextSpec());