smallize method

TextStyle smallize([
  1. double amount = 1
])

Decrease TextStyle.fontSize of the text by the amount of amount.

テキストのTextStyle.fontSizeamountの分だけ小さくします。

Implementation

TextStyle smallize([double amount = 1]) {
  return copyWith(fontSize: fontSize == null ? null : (fontSize! - amount));
}