squareRoot property
double
get
squareRoot
Implementation
double get squareRoot {
if (this < 0) {
return double.nan; // Square root is not defined for negative numbers
}
return sqrt(this);
}