GenericPdfController class

GenericPdfController

Inheritance

Constructors

GenericPdfController({required String title, required String creator, required PdfPageFormat format, required List<String> columns, required List<List<String?>> rows, ThemeData? themeData})

Properties

columns List<String>
final
creator String
final
format PdfPageFormat
final
hashCode int
The hash code for this object.
no setterinherited
rows List<List<String?>>
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
themeData ThemeData?
final
title String
final

Methods

exportInternal(Context context) List<Widget>
Implement and return a list of PDFs to be created.
override
generatePdf() Future<Uint8List>
inherited
getDocumentCreator() String
The name of the creator of the PDF to be created should be returned.
override
getDocumentTitle() String
The title of the PDF to be created should be returned.
override
getFooter(Context context) Widget
It should implement and return the footer widget of the PDF to be generated.
override
getHeader(Context context) Widget
The header widget of the PDF to be created should be implemented and returned.
override
getPageFormat() PdfPageFormat
It should return the page format of the PDF to be created.
override
getPageOrientation() PageOrientation
The PageOrientation of the PDF to be created should be returned.
override
getThemeData() ThemeData
The ThemeData of the PDF to be created should be returned.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

baseCellColor → const PdfColor
baseTextColor → const PdfColor
borderColor → const PdfColor
headerBackground → const PdfColor
oddRowColor → const PdfColor