execute method
Implementation
@override
Future<bool> execute(ReportBugUsecaseEntity param) async {
DeviceDetails deviceDetails =
await getDeviceDetails(QuashModule.navigatorKey.currentContext!);
Map<String, dynamic> deviceParam = {
"device": deviceDetails.device,
"os": deviceDetails.os,
"screenResolution": deviceDetails.screenResolution,
"networkType": deviceDetails.networkType,
"batteryLevel": deviceDetails.batteryLevel ?? "0",
"source": quashRepo.getAppType()
};
param.param.addAll(deviceParam);
return quashRepo.updateBug(
param.param,
param.files,
param.newSelectedMedia,
param.removedMediaId);
}