-
-
Save heftekharm/9ee58af514e7d0a2b08bec96b0336c4c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
abstract class Shape { | |
final int size; | |
Shape(this.size); | |
static Shape circle(int outerRadius, [int innerRadius = 0]) => _Circle(outerRadius, innerRadius); | |
static Shape square(int size) => _Square(size); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment