The `runtimeType` property provides a representation of the runtime type of the given BigInt object.
The syntax of BigInt.runtimeType property is:
Type runtimeType
This runtimeType property of BigInt a representation of the runtime type of the object.
BigInt.runtimeType returns value of type Type
.
In this example,
bigInt
with the value -12345.runtimeType
property to get the runtime type of the BigInt.void main() {
BigInt bigInt = BigInt.from(-12345);
Type type = bigInt.runtimeType;
print('The runtime type of $bigInt is $type');
}
The runtime type of -12345 is int
In this Dart tutorial, we learned about runtimeType property of BigInt: the syntax and few working examples with output and detailed explanation for each example.