screenInFocus method
dynamic
screenInFocus(
- bool focus, {
- required dynamic sex,
- required dynamic age,
- required dynamic weight,
- required dynamic licenseKey,
Implementation
screenInFocus(bool focus,
{required sex,
required age,
required weight,
required licenseKey}) async {
if (focus) {
if (!await _requestCameraPermission()) {
return;
}
_createSession(
sex: sex, age: age, weight: weight, licenseKey: licenseKey);
} else {
_terminateSession();
}
}