stepWeight method

TextStyle stepWeight([
  1. int steps = 1
])

Steps fontWeight by steps (positive = bolder/thicker, negative = lighter). If fontWeight is null, defaults to FontWeight.normal before stepping.

Implementation

TextStyle stepWeight([int steps = 1]) {
  final current = fontWeight ?? FontWeight.normal;
  return copyWith(fontWeight: current.step(steps));
}