setFont method

void setFont(
  1. String? family,
  2. FontStyle? style,
  3. FontWeight? weight
)

Implementation

void setFont(String? family, FontStyle? style, FontWeight? weight) {
  fontFamily = family;
  fontStyle = style;
  fontWeight = weight;
}