toColor method

Color toColor()

Converts this RayRgb8 to a Flutter Color.

final ray = RayRgb8.fromHex('#FF0000');
final color = ray.toColor();

Implementation

Color toColor() => Color(toRgb8().toArgbInt());