fromValue static method

FontType fromValue(
  1. int value
)

Implementation

static FontType fromValue(int value) => switch (value) {
  0 => FONT_DEFAULT,
  1 => FONT_BITMAP,
  2 => FONT_SDF,
  _ => throw ArgumentError('Unknown value for FontType: $value'),
};