init function
初始化脚手架
Implementation
Future<WidgetsBinding> init({
bool isDebug = false,
String? logTag,
String? networkLog,
int dioTimeOut = 10,
List<Locale>? supportedLocales,
}) async {
isDebugMode = isDebug;
Logger.init(isDebugMode, logTag, networkLog);
WidgetsBinding widgetsBinding = WidgetsFlutterBinding.ensureInitialized();
await Get.putAsync(() => GlobalService().init(supportedLocales: supportedLocales));
await Get.putAsync(() => HttpService().init(timeout: dioTimeOut));
return widgetsBinding;
}