PrintDesign class

Small builder for designer layouts. Every measure is in millimetres.

Constructors

PrintDesign(double widthMm, double heightMm)

Properties

hashCode → int
The hash code for this object.
no setterinherited
heightMm → double
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
widthMm → double
final

Methods

barcode(String fieldName, double x, double y, double width, double height) → void
build({required String id, required String name, ReportType reportType = ReportType.label}) → ReportTemplate
field(String fieldName, double x, double y, double width, double height, {required double size, bool bold = false, String color = '#000000', String align = 'left', String verticalAlign = 'center', int maxLines = 1, bool strike = false, bool serif = false, String prefix = '', String suffix = ''}) → void
line(double x, double y, double width, {String color = '#000000', double strokeWidth = 0.3}) → void
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
qrCode(String fieldName, double x, double y, double width, double height) → void
rectangle(double x, double y, double width, double height, {String? fill, String stroke = '#000000', double strokeWidth = 0.3, double radius = 0}) → void
table(String dataSource, double x, double y, double width, double height, {required String accent, required List<PrintColumn> columns}) → void
text(String value, double x, double y, double width, double height, {required double size, bool bold = false, String color = '#000000', String align = 'left', String verticalAlign = 'center', int maxLines = 1, bool strike = false, bool serif = false}) → void
toString() → String
A string representation of this object.
inherited

Operators

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