init static method

Future<bool> init(
  1. {int? getSDKAppID(
      )?,
    1. String getLoginUser(
        )?}
      )

      Implementation

      static Future<bool> init({
        int? Function()? getSDKAppID,
        String Function()? getLoginUser
      }) async {
        _appFileDir ??= Platform.isAndroid ? await getApplicationSupportDirectory() : await getApplicationDocumentsDirectory();
        _appCacheDir = await getApplicationCacheDirectory();
        _externalCacheDir ??= Platform.isAndroid ? await getExternalStorageDirectory() : null;
        _getSDKAppID ??= getSDKAppID;
        _getLoginUser ??= getLoginUser;
        return true;
      }