Flutter Android 端 FlutterInjector 及依赖流程源码分析,android开发强化实战
//…//步骤1、全局单例FlutterInjector实例获取。publicstaticFlutterInjectorinstance(){accessed=true;if(instance==null){instance=newBuilder().build();}returninstance;}//步骤2、一般无用,该特性在配合GP市场使用,譬如SDK中FlutterPlayStoreSpl