w method

String w(
  1. int w
)

Implementation

String w(int w) => length > w ? '*' * w : this;