getApp function Null safety

App getApp(
  1. {dynamic withInit = Function}
)

Returns App instance representing application generated from Figma. When App is initialized, withInit callback is triggered.

Implementation

App getApp({withInit:Function}){
  if(!isInitialized){
    //if(isWeb) jsInteropInit();
    isInitialized = true;
  }
  withInit ??= (){};
  return App(withInit);
}