darken method

TextStyle darken([
  1. double amount = 0.1
])

Darkens TextStyle.color of the text by amount.

テキストのTextStyle.coloramountの分だけより暗くします。

Implementation

TextStyle darken([double amount = 0.1]) {
  return copyWith(
    color: color?.darken(amount),
  );
}