dart_interval 0.1.1 copy "dart_interval: ^0.1.1" to clipboard
dart_interval: ^0.1.1 copied to clipboard

outdated

This library provides data structure and operations for intervals in Dart.

example/main.dart

import 'package:dart_interval/dart_interval.dart';

void main() {
  final v3 = Interval.between(7, 9, lowerClosed: false, upperClosed: false);
  final v1 = Interval.between(1, 3);
  final v2 = Interval.between(2, 5);
  final set = IntervalSet([v1, v2, v3]);

  print(set);
  print(v1 & v2);
  print(v1 | v2);
}
2
likes
0
pub points
0%
popularity

Publisher

verified publisherfxcdev.com

This library provides data structure and operations for intervals in Dart.

Repository (GitHub)
View/report issues

License

unknown (license)

More

Packages that depend on dart_interval