resolveFontWeight method

FontWeight resolveFontWeight(
  1. String? value
)

Implementation

FontWeight resolveFontWeight(String? value) {
  final int weight = resolve("fontWeights", value ?? "default") as int;
  return FontWeight.values
      .firstWhere((w) => w.toString() == "FontWeight.w$weight");
}