Color.Gray constructor

const Color.Gray(
  1. double gray, {
  2. double a = 1.0,
})

Implementation

const Color.Gray(double gray, {this.a = 1.0})
    : r = gray,
      g = gray,
      b = gray;