Skip to content
This repository has been archived by the owner on Jul 11, 2024. It is now read-only.

Latest commit

 

History

History
15 lines (11 loc) · 450 Bytes

README.md

File metadata and controls

15 lines (11 loc) · 450 Bytes

Flutter Is Emulator plugin

Plugin to detect whether the current device is an emulator or simulator

Getting Started

First, you just have to import the package in your dart files with:

import 'package:flutter_is_emulator/flutter_is_emulator.dart';

Then you just have to request if the device is an emulator (Android) or a simulator (iOS) with:

bool isAnEmulator = await FlutterIsEmulator.isDeviceAnEmulatorOrASimulator;