CharacterParticle constructor
Creates a character/emoji particle painter.
Parameters:
character: The character or emoji to display. Default: '●'fontSize: The font size in pixels. Default: 12.0color: Optional color override. If null, uses connection color. Note: For emojis, color override may not work as emojis have their own colors.
Implementation
CharacterParticle({this.character = '●', this.fontSize = 12.0, this.color})
: assert(character.isNotEmpty, 'Character must not be empty'),
assert(fontSize > 0, 'Font size must be positive') {
// Pre-compute the size by measuring the text
_computeSize();
}