package com.atmob.keyboard_android.util

import com.atmob.keyboard_android.constant.PluginConfig
import io.flutter.embedding.engine.FlutterEngine
import io.flutter.embedding.engine.FlutterEngineCache

/**
 * Flutter引擎持有者
 */
object FlutterEngineHolder {
    /**
     * 获取FlutterEngine
     */
    fun getFlutterEngine(): FlutterEngine? {
        return FlutterEngineCache.getInstance().get(PluginConfig.FLUTTER_ENGINE_ID)
    }
}