afMainUILibrary function
        
void
afMainUILibrary({ 
    
- required AFLibraryID id,
- required AFDartParams paramsDart,
- required AFExtendBaseDelegate installBase,
- required AFExtendBaseDelegate installBaseLibrary,
- required AFExtendCoreLibraryDelegate installCoreLibrary,
- required AFExtendTestDelegate installTest,
afMainApp handles startup, execution, and shutdown sequence for an afApp
Implementation
void afMainUILibrary({
  required AFLibraryID id,
  required AFDartParams paramsDart,
  required AFExtendBaseDelegate installBase,
  required AFExtendBaseDelegate installBaseLibrary,
  required AFExtendCoreLibraryDelegate installCoreLibrary,
  required AFExtendTestDelegate installTest
}) {
  final appContext = AFibF.context;
  final contextLibrary = AFCoreLibraryExtensionContext(id: id, app: appContext.thirdParty);
  installCoreLibrary(contextLibrary);
  final paramsProto = paramsDart.forceEnvironment(AFEnvironment.prototype);
  // ignore: omit_local_variable_types
  final AFExtendAppDelegate extendAppFull = (context) {
    context.fromUILibrary(contextLibrary,
      createApp: () => const AFAppUILibrary(),
      defineFundamentalTheme: defineAFDefaultFundamentalTheme,
    );
  };
  afMainApp(
    paramsDart: paramsProto,
    installBase: installBase,
    installBaseLibrary: installBaseLibrary,
    installCoreApp: extendAppFull,
    installTest: installTest,
    appContext: appContext,
  );
}