返回 color 的八位透明度,范围为 0–255。
color
例如不透明黑色返回 255;兼容 Flutter 3.24。
int colorAlpha8(Color color) { // ignore: deprecated_member_use return color.alpha; }