isNativeToken static method

bool isNativeToken(
  1. String address
)

Checks if the given address is the native token's address.

Implementation

static bool isNativeToken(String address) {
  return address.toLowerCase() ==
      Variables.NATIVE_TOKEN_ADDRESS.toLowerCase();
}