TinyColor.fromRGB constructor

  1. @Deprecated('Use TinyColor.fromColor(Color.fromARGB(a, r, g, b)) instead.')
TinyColor.fromRGB({
  1. required int r,
  2. required int g,
  3. required int b,
  4. int a = 255,
})

Implementation

@Deprecated('Use TinyColor.fromColor(Color.fromARGB(a, r, g, b)) instead.')
factory TinyColor.fromRGB({
  required int r,
  required int g,
  required int b,
  int a = 255,
}) =>
    TinyColor.fromColor(Color.fromARGB(a, r, g, b));