isAndroidSimulator property

bool get isAndroidSimulator

Implementation

static bool get isAndroidSimulator {
  if (_isSimulatorDevice == null) {
    throw Exception(
        'Simulator detection not initialized. Call _initializeSimulatorDetection first.');
  }

  _isAndroidSimulator ??= !kIsWeb && Platform.isAndroid && _isSimulatorDevice!;

  return _isAndroidSimulator!;
}