public interface FlutterEngineProviderProvides a
FlutterEngineinstance to be used by a
FlutterEngineinstances require significant time to warm up. Therefore, a developer might choose to hold onto an existing
FlutterEngineand connect it to various
FlutterFragments. This interface facilitates providing a cached, pre-warmed
@Nullable FlutterEngine provideFlutterEngine(@NonNull Context context)Returns the
FlutterEnginethat should be used by a child
This method may return a new
FlutterEngine, an existing, cached
FlutterEngine, or null to express that the
FlutterEngineProviderwould like the
FlutterFragmentto provide its own
context- The current context. e.g. An activity.
- The Flutter engine.