linearGradient method

XuBoxDecoration linearGradient(
  1. List<Color> colors,
  2. {AlignmentGeometry begin = Alignment.centerLeft,
  3. AlignmentGeometry end = Alignment.centerRight}
)

Implementation

XuBoxDecoration linearGradient(
        List<Color> colors,{
        AlignmentGeometry begin = Alignment.centerLeft,
        AlignmentGeometry end = Alignment.centerRight}) =>
    this.._linearGradient = LinearGradient(begin: begin,end: end,colors: colors);