provider top-level property

Web3Provider? get provider

Getter for default Web3Provider object.

Implementation

Web3Provider? get provider => Ethereum.isSupported
    ? Web3Provider(Ethereum.provider)
    : Klaytn.isSupported
        ? Web3Provider(Klaytn.provider)
        : null;