getFontWeight method

FontWeight getFontWeight(
  1. String value
)

Implementation

FontWeight getFontWeight(String value) {
  return FontWeight.values.firstWhere(
      (element) =>
          value.toLowerCase().contains(" w${element.value} "),
      orElse: () => FontWeight.w400);
}