FontWeights extension Null safety

Converts in a simple way a textStyle to the desired font weight.

Example usage: context.textStyles.h1.semiBold

on

Properties

bold TextStyle
Bold
read-only
extraBold TextStyle
Extra-bold
read-only
extraLight TextStyle
Extra-light
read-only
light TextStyle
Light
read-only
medium TextStyle
Medium
read-only
regular TextStyle
Normal, regular, plain
read-only
semiBold TextStyle
Semi-bold
read-only
thick TextStyle
Black, the most thick
read-only
thin TextStyle
Thin, the least thick
read-only