smallize method
Decrease TextStyle.fontSize of the text by the amount of amount
.
テキストのTextStyle.fontSizeをamount
の分だけ小さくします。
Implementation
TextStyle smallize([double amount = 1]) {
return copyWith(fontSize: fontSize == null ? null : (fontSize! - amount));
}