AgentAnswerSpec constructor

const AgentAnswerSpec({
  1. StyleSpec<FlexBoxSpec>? container,
  2. StyleSpec<BoxSpec>? body,
  3. StyleSpec<TextSpec>? text,
  4. StyleSpec<BoxSpec>? sources,
  5. StyleSpec<FlexBoxSpec>? actions,
  6. StyleSpec<TextSpec>? feedback,
})

Creates a spec; every slot defaults to empty.

Implementation

const AgentAnswerSpec({
  StyleSpec<FlexBoxSpec>? container,
  StyleSpec<BoxSpec>? body,
  StyleSpec<TextSpec>? text,
  StyleSpec<BoxSpec>? sources,
  StyleSpec<FlexBoxSpec>? actions,
  StyleSpec<TextSpec>? feedback,
}) : container = container ?? const StyleSpec(spec: FlexBoxSpec()),
     body = body ?? const StyleSpec(spec: BoxSpec()),
     text = text ?? const StyleSpec(spec: TextSpec()),
     sources = sources ?? const StyleSpec(spec: BoxSpec()),
     actions = actions ?? const StyleSpec(spec: FlexBoxSpec()),
     feedback = feedback ?? const StyleSpec(spec: TextSpec());