custom static method

Gradient custom({
  1. required List<Color> colors,
  2. Alignment begin = Alignment.topLeft,
  3. Alignment end = Alignment.bottomRight,
})

Implementation

static Gradient custom({
  required List<Color> colors,
  Alignment begin = Alignment.topLeft,
  Alignment end = Alignment.bottomRight,
}) {
  return LinearGradient(colors: colors, begin: begin, end: end);
}