📜  设计模式 para Flutter - Dart 代码示例

📅  最后修改于: 2022-03-11 14:48:06.950000             🧑  作者: Mango

代码示例1
abstract class Shape {
  String draw();
}

class Square implements Shape {
  String draw() => "Square";
}

class Triangle implements Shape {
  String draw() => "Triangle";
}