Color.fromOther constructor

Color.fromOther({
  1. required Color color,
  2. Color? darker,
  3. Color? lighter,
})

Implementation

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