AgentMessageSpec constructor

const AgentMessageSpec({
  1. StyleSpec<BoxSpec>? container,
  2. StyleSpec<BoxSpec>? surface,
  3. StyleSpec<TextSpec>? text,
  4. StyleSpec<BoxSpec>? header,
  5. StyleSpec<BoxSpec>? footer,
  6. double? maxWidthFactor,
  7. double? collapsedHeight,
})

Creates a spec; every slot defaults to empty.

Implementation

const AgentMessageSpec({
  StyleSpec<BoxSpec>? container,
  StyleSpec<BoxSpec>? surface,
  StyleSpec<TextSpec>? text,
  StyleSpec<BoxSpec>? header,
  StyleSpec<BoxSpec>? footer,
  this.maxWidthFactor,
  this.collapsedHeight,
}) : container = container ?? const StyleSpec(spec: BoxSpec()),
     surface = surface ?? const StyleSpec(spec: BoxSpec()),
     text = text ?? const StyleSpec(spec: TextSpec()),
     header = header ?? const StyleSpec(spec: BoxSpec()),
     footer = footer ?? const StyleSpec(spec: BoxSpec());