getCollectiblesByOwner method

Future getCollectiblesByOwner(
  1. String owner
)

Implementation

Future<dynamic> getCollectiblesByOwner(String owner) async {
  QueryResult result = await _clientNFT.query(QueryOptions(
    document: parseString(getCollectiblesByOwnerQuery),
    fetchPolicy: FetchPolicy.networkOnly,
    cacheRereadPolicy: CacheRereadPolicy.ignoreAll,
    variables: <String, dynamic>{
      'owner': owner.toLowerCase(),
    },
  ));
  if (result.hasException) {
    throw 'Error! Get Collectibles By Owner request failed - owner: $owner ${result.exception.toString()}';
  } else {
    return result.data?["collectibles"];
  }
}