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