fromDartColor static method

Color fromDartColor(
  1. Color color
)

Implementation

static common.Color fromDartColor(ui.Color color) {
  return common.Color(
      r: color.red, g: color.green, b: color.blue, a: color.alpha);
}