w method

XStyle w(
  1. double weight
)

Implementation

XStyle w(double weight) {
  if (weight == 300) {
    fontWeight = FontWeight.w300;
  } else if (weight == 500) {
    fontWeight = FontWeight.w500;
  } else if (weight == 700) {
    fontWeight = FontWeight.w700;
  } else {
    fontWeight = FontWeight.w500;
  }
  return this;
}