zam_core 0.1.2 zam_core: ^0.1.2 copied to clipboard
Core library for all zamstation packages which contains the most basic classes like the NamedException to get started.
import 'package:zam_core/zam_core.dart';
void main() {
final triangle = Triangle(6, 4);
final clonedTriangle = triangle.clone();
print(triangle == clonedTriangle); // false
}
class Triangle implements Cloneable<Triangle> {
final double base;
final double height;
const Triangle(this.base, this.height);
@override
Triangle clone() {
return Triangle(this.base, this.height);
}
}