toColor property

Color get toColor

Converts this number to a Color with the alpha channel set to this number.

Example: 0xff6a87e3.toColor -> Color(0xff6a87e3).

Implementation

Color get toColor => Color(toInt());