Color constructor

const Color({
  1. required int r,
  2. required int g,
  3. required int b,
  4. int a = 255,
  5. Color? darker,
  6. Color? lighter,
})

Implementation

const Color({
  required this.r,
  required this.g,
  required this.b,
  this.a = 255,
  Color? darker,
  Color? lighter,
})  : _darker = darker,
      _lighter = lighter;