foreground method

Color foreground(
  1. bool enabled
)

根据 enabled 返回前景色。

Implementation

Color foreground(bool enabled) =>
    enabled ? foregroundColor : disabledForegroundColor;