isDecorativeGlyphCaption function

bool isDecorativeGlyphCaption(
  1. String? text
)

Bullet / password-mask / icon-font glyphs — not observe text or text=.

Implementation

bool isDecorativeGlyphCaption(String? text) {
  final t = text?.trim() ?? '';
  if (t.isEmpty) return true;
  if (RegExp(r'^[•·\.●○\*‧∙]+$').hasMatch(t)) return true;
  // Custom icon fonts (app-specific LEDs, etc.) paint Private Use Area code points.
  return t.runes.every(_isIconFontOrTofuCodePoint);
}