Created
October 8, 2020 12:44
-
-
Save Headmast/71839a669aba2d44f6340bf1507c4f70 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
void main() { | |
var sh = CustomShape(); | |
sh.getBorder(sh.borders); | |
} | |
class CustomShape extends Shape with BorderHelper { | |
CustomShape(): super([1.0, 2.0]); | |
} | |
mixin BorderHelper { | |
void getBorder(List<double> borders) { | |
print(borders.length); | |
} | |
//int get bordersCount => (border.) | |
} | |
class Shape { | |
final List<double> borders; | |
Shape(this.borders); | |
} | |
class Trapezoid extends Shape { | |
Trapezoid(): super([8.0, 5.0, 10.0, 5.0]); | |
} | |
class Country { | |
final List<double> borders; | |
Country(this.borders); | |
} | |
void getBorder(BorderHelper helper) { | |
//print(helper.bordersCount); | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
все ок. зачет