resolveFontWeight method

FontWeight resolveFontWeight()

Resolves the title font weight.

Implementation

FontWeight resolveFontWeight() {
  if (this is TTileSize && (this as TTileSize).fontWeight != null) {
    return (this as TTileSize).fontWeight!;
  }
  return font >= 22.0 ? FontWeight.w700 : (font >= 16.0 ? FontWeight.w600 : FontWeight.w500);
}