toPdfFontWeight method

FontWeight toPdfFontWeight()

Implementation

pw.FontWeight toPdfFontWeight() {
  switch (this) {
    case FontWeight.normal:
      return pw.FontWeight.normal;
    case FontWeight.bold:
      return pw.FontWeight.bold;
    default:
      debugPrint(
          'Unsupported FontWeight: $this; defaulting to FontWeight.normal');
      return pw.FontWeight.normal;
  }
}