Dart y Su Interpólacion Con C++ y Java y Python
Dart y Su Interpólacion Con C++ y Java y Python
class Circle {
double radius;
Circle(this.radius);
void main() {
// Before Dart 2.1, you had to provide a trailing `.0` – `42.0` – when
// assigning to fields or parameters of type `double`.
// A value like `42` was not allowed.
// With Dart 2.1, you can provide whole-number values when assigning to
// a double without the trailing `.0`.
print(Circle(2).area); // Legal with Dart 2.1
}