Skip to content

Instantly share code, notes, and snippets.

@Headmast
Created October 8, 2020 12:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Headmast/71839a669aba2d44f6340bf1507c4f70 to your computer and use it in GitHub Desktop.
Save Headmast/71839a669aba2d44f6340bf1507c4f70 to your computer and use it in GitHub Desktop.
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);
}
@vlad-bel
Copy link

vlad-bel commented Oct 9, 2020

все ок. зачет

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment