Glyph.fromDynamic constructor

Glyph.fromDynamic(
  1. Object charOrCharCode, [
  2. Color? fore,
  3. Color? back
])

Implementation

factory Glyph.fromDynamic(Object charOrCharCode, [Color? fore, Color? back]) {
  if (charOrCharCode is String) return Glyph(charOrCharCode, fore, back);
  return Glyph.fromCharCode(charOrCharCode as int, fore, back);
}