execute method
Executes the method and returns a score between 0 and 100
Implementation
@override
Future<({double score, String? reason})> execute() async {
final deviceInfo = await DeviceInfoPlugin().deviceInfo;
if (deviceInfo is AndroidDeviceInfo) {
final model = deviceInfo.model.toLowerCase();
final hw = deviceInfo.hardware.toLowerCase();
if (model.contains('sm-g') && hw.contains('x86')) {
return (score: score, reason: reason);
}
}
return (score: 0.0, reason: null);
}