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 board = deviceInfo.board.toLowerCase();
if (board.contains('goldfish') ||
board.contains('ranchu') ||
board.contains('x86') ||
board.contains('vbox')) {
return (score: score, reason: "$reason: $board");
}
}
return (score: 0.0, reason: null);
}