getGold method

Future<int> getGold()

get br inventory gold

Implementation

Future<int> getGold() async {
  gold = (await client.send(
        method: "GET",
        url: "${Endpoints().brInventory}/$accountId",
      ))?["stash"]?["globalcash"] ??
      0;
  return gold;
}