PrintRowModel class

print row data for each row of printed bill.

Annotations

Constructors

PrintRowModel({required String printDataType, required int printerWidth, bool isCenterAligned = true, String? dataToPrint, String imagePath = '0', String imageData = '0'})
PrintRowModel is each row within the
const
PrintRowModel.fromJson(String source)
convert to json
factory
PrintRowModel.fromMap(Map<String, dynamic> map)
create PrintRowModel from map
factory

Properties

dataToPrint String?
It contains data to print in form of String.
final
hashCode int
The hash code for this object.
no setteroverride
imageData String
It contains image data in form of encoded string
final
imagePath String
It contains image path from Device external storage
final
isCenterAligned bool
It will contain true or false for data to be printed in center-aligned or not
final
printDataType String
Data Type will be as following Integer Yes PrintText =0 PrintImageByPath =1 PrintImageDump =2 PrintBarcode=3 PrintQRCode=4
final
printerWidth int
Line Width of Printer, Possible values: 24,32,48
final
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
toJson() String
convert PrintRowModel json
toMap() Map<String, dynamic>
convert PrintRowModel to Map
toString() String
A string representation of this object.
override

Operators

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