TTableHelper class
Helper class for creating PDF tables from data headers.
TTableHelper simplifies the creation of PDF tables using the pdf package
by bridging TTableHeader definitions with the PDF TableHelper.
Usage Example
final pdfTable = TTableHelper.from(
context,
[
TTableHeader(text: 'Name', map: (item) => item.name),
TTableHeader(text: 'Age', map: (item) => item.age),
],
users,
);
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
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
Static Methods
-
from<
T, K> (BuildContext context, List< TTableHeader< headers, List<T, K> >T> items, {TPdfTableDecoration decoration = const TPdfTableDecoration()}) → dynamic - Creates a PDF table widget from headers and items.