calculateFontWeight method

FontWeight calculateFontWeight(
  1. BuildContext context,
  2. double distance
)

Implementation

FontWeight calculateFontWeight(BuildContext context, double distance) {
  if (distance < 0.5) {
    return FontWeight.w600;
  } else {
    return FontWeight.w400;
  }
}