init method

PixivAuth init({
  1. required String targetIPGetter(),
  2. required String languageGetter(),
  3. required String deviceName,
})

兼容GetX的GetxService

Implementation

PixivAuth init({
  required String Function() targetIPGetter,
  required String Function() languageGetter,
  required String deviceName,
}) {
  this.targetIPGetter = targetIPGetter;
  this.languageGetter = languageGetter;
  this.deviceName = deviceName;
  return this;
}