zam_core 0.1.2 copy "zam_core: ^0.1.2" to clipboard
zam_core: ^0.1.2 copied to clipboard

outdated

Core library for all zamstation packages which contains the most basic classes like the NamedException to get started.

example/lib/main.dart

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);
  }
}
0
likes
0
pub points
3%
popularity

Publisher

verified publisherzamstation.com

Core library for all zamstation packages which contains the most basic classes like the NamedException to get started.

Homepage
Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

meta

More

Packages that depend on zam_core