Plugin to detect whether the current device is an emulator or simulator
Flutter Is Emulator plugin #
Plugin to detect whether the current device is an emulator or a simulator.
Getting Started #
First, you have to import the package in your dart files with:
Then you just have to request if the device is an emulator (Android) or a simulator (iOS) with:
bool isAnEmulator = await FlutterIsEmulator.isDeviceAnEmulatorOrASimulator;