Color.of constructor

Color.of(
  1. int color
)

Implementation

factory Color.of(int color) {
  final hex = color.toRadixString(16);
  return Color('#$hex');
}