A Flutter plugin for detecting the emulator device and mock location / fake gps.
In your flutter project add the dependency:
dependencies:
...
fake_gps_detector: ^0.5.0
import 'package:fake_gps_detector/fake_gps_detector.dart';
Permission src/main/AndroidManifest.xml
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
(ANDROID ONLY) Checks whether device is real or emulator
bool isMock = await FakeGpsDetector.isFakeGps;
(ANDROID ONLY) Can this device mock location - no need to root!
bool isEmulator = await FakeGpsDetector.isEmulator;