isConstructor property

bool get isConstructor

Returns true if this function is an constructor of the contract it belongs to. Mind that this library does currently not support deploying new contracts on the blockchain, it only supports calling functions of existing contracts.

Implementation

bool get isConstructor => type == ContractFunctionType.constructor;