toPdfLinearGradient method

LinearGradient toPdfLinearGradient()

Implementation

pw.LinearGradient toPdfLinearGradient() => pw.LinearGradient(
      colors:
          colors.map<PdfColor>((Color color) => color.toPdfColor()).toList(),
      begin: (begin as Alignment).toPdfAlignment(),
      end: (end as Alignment).toPdfAlignment(),
      stops: stops,
      tileMode: tileMode.toPdfTileMode(),
    );