printGrid method

Future<PrintResponse> printGrid({
  1. PrintOrientation orientation = PrintOrientation.PRINT_PORTRAIT,
  2. int marginLeft = 0,
  3. int marginTop = 0,
  4. int marginRight = 0,
  5. int marginBottom = 0,
  6. String header = '',
  7. String footer = '',
  8. bool showPageNumbers = true,
})

Render printable pages.

Implementation

Future<PrintResponse> printGrid({
  PrintOrientation orientation = PrintOrientation.PRINT_PORTRAIT,
  int marginLeft = 0,
  int marginTop = 0,
  int marginRight = 0,
  int marginBottom = 0,
  String header = '',
  String footer = '',
  bool showPageNumbers = true,
}) async {
  return VolvoxGridService.Print(PrintRequest()
    ..gridId = _gridId
    ..orientation = orientation
    ..marginLeft = marginLeft
    ..marginTop = marginTop
    ..marginRight = marginRight
    ..marginBottom = marginBottom
    ..header = header
    ..footer = footer
    ..showPageNumbers = showPageNumbers);
}