isEthereumSupported top-level property

bool isEthereumSupported

Getter for boolean to detect Ethereum object support. without calling itself to prevent js undefined error.

Implementation

bool get isEthereumSupported =>
    hasProperty(_window, 'ethereum') || hasProperty(_window, 'BinanceChain');