@Override
protected void attachBaseContext(Context base) {
    super.attachBaseContext(base);
    // Emulates installation of future on demand modules using SplitCompat.
    SplitCompat.install(this);
}
        
      


        Declare SplitCompatApplication as the application
    subclass and add the Flutter compatibility code from
  FlutterApplication to your application class:

        
<application
    ...
    android:name="com.google.android.play.core.splitcompat.SplitCompatApplication">
</application>
        
      


    The embedder relies on an injected
DeferredComponentManager instance to handle
install requests for deferred components.
Provide a PlayStoreDeferredComponentManager into
the Flutter embedder by adding the following code
to your app initialization: