getTextBaseline method

TextBaseline? getTextBaseline(
  1. String? value
)

Implementation

TextBaseline? getTextBaseline(String? value) {
  if (value == null) {
    return null;
  }

  switch (value) {
    case "alphabetic":
      return TextBaseline.alphabetic;
    case "ideographic":
      return TextBaseline.ideographic;
    default:
      return null;
  }
}