square property
double
get
square
Returns the square of this number as double (n * n).
Example: 5.square -> 25.0 for simple area/animation calculations.
Implementation
double get square => (this * this).toDouble();