startPrintProcess method
- PrintAction actionType
Implementation
Future<void> startPrintProcess(PrintAction actionType) async {
if (actionType == PrintAction.print) {
emit(state.copyWith(isLoadingPrint: true, action: actionType));
} else {
emit(state.copyWith(isLoadingShare: true, action: actionType));
}
await print();
}