file.writeAsBytesSync(pdf.save()); this line send error The argument type 'Future<Uint8List>' can't be assigned to the parameter type
file.writeAsBytesSync(pdf.save());
this line send error
The argument type 'Future' can't be assigned to the parameter type