ms_range 0.2.0 copy "ms_range: ^0.2.0" to clipboard
ms_range: ^0.2.0 copied to clipboard

A powerfull lib to creante ranges and compare if number is in range

example/main.dart

import 'package:ms_range/ms_range.dart';

main() {
  Range range = Range(1, 20);
  print("Print array 1..20");
  print(range.list);

  print("\nPrint if value is in range");
  print("100 is between 1..20? ${range.isBetween(100)}");
  print("7 is between 1..20? ${range.isBetween(7)}");
  print("20 is between 1..20? ${range.isBetween(20)}");

  print("100 is in range 1..20? ${range.isInRange(100)}");
  print("7 is in range 1..20? ${range.isInRange(7)}");
  print("20 is in range 1..20? ${range.isInRange(20)}");
}
4
likes
40
points
37
downloads

Publisher

verified publishermarcussoftware.info

Weekly Downloads

A powerfull lib to creante ranges and compare if number is in range

Repository (GitHub)
View/report issues

License

MIT (license)

More

Packages that depend on ms_range