getFontWeight function

FontWeight getFontWeight(
  1. bool? strong
)

获取字重

Implementation

FontWeight getFontWeight(bool? strong) {
  if (strong == null) return FontWeight.normal;
  return strong ? FontWeight.bold : FontWeight.normal;
}