getScannerInfo method
Implementation
getScannerInfo(Function(bool isSuccess) callback) {
UnitsForNetwork.getHttpForDevice(
getDeviceDetailApi,
parameters: {},
onSuccess: (res) {
UnitsDataTool.saveString(LESN_MODEL, res["model"], '');
callback(true);
debugPrint(res.toString());
},
onError: (error) {
callback(false);
debugPrint(error.toString());
},
);
}