AgentGlyphBuilder typedef

AgentGlyphBuilder = Widget? Function(BuildContext context, AgentGlyph glyph, IconSpec spec)

Draws glyph with the slot's resolved icon spec, or returns null to draw nothing.

The returned widget inherits spec as its icon theme, so a plain Icon takes the slot's size and color.

Implementation

typedef AgentGlyphBuilder =
    Widget? Function(BuildContext context, AgentGlyph glyph, IconSpec spec);