getTradePercentage method

double getTradePercentage()

To be documented; not generally significant to client applications.

Not available on partial items.

Implementation

double getTradePercentage() {
  if (_complete) {
    // TODO: check if this is right
    return double.parse(_native!.tradePercentage);
  } else {
    throw UnsupportedError('Cannot retrieve this field from ItemRecord - call Item.get() with the provided ID if needed');
  }
}