printPdf method
Future<Map<String, dynamic> >
printPdf(
- String pdfPath, {
- int width = 70,
- int height = 50,
- int dpi = 300,
- int density = 11,
- int speed = 2,
- int paperType = 1,
- int instruction = 1,
override
Implementation
@override
Future<Map<String, dynamic>> printPdf(
String pdfPath, {
int width = 70,
int height = 50,
int dpi = 300,
int density = 11,
int speed = 2,
int paperType = 1,
int instruction = 1,
}) async {
final result = await methodChannel.invokeMethod('printPdf', {
'pdfPath': pdfPath,
'width': width,
'height': height,
'dpi': dpi,
'density': density,
'speed': speed,
'paperType': paperType,
'instruction': instruction,
});
return Map<String, dynamic>.from(result as Map);
}