getStore method

Future<Store> getStore()

Implementation

Future<Store> getStore() async {
  if (_platform.isIOS) {
    return Future.value(Store.appStore);
  }
  if (_platform.isAndroid) {
    final store = await _channel.invokeMethod<String?>('getStore');
    if (store == "play_store") return Store.playStore;
    if (store == "amazon") return Store.amazon;
    return Store.none;
  }
  return Future.value(Store.none);
}