is_odd 1.0.1 copy "is_odd: ^1.0.1" to clipboard
is_odd: ^1.0.1 copied to clipboard

Minimalist and elegant API that returns true if the given number is odd.

example/is_odd_example.dart

import 'dart:math';
import 'package:is_odd/is_odd.dart';

void main() {
  final number = Random().nextInt(0xFF);

  print('$number is ${isOdd(number) ? '' : 'not'} odd');
}
5
likes
160
points
15
downloads

Publisher

unverified uploader

Weekly Downloads

Minimalist and elegant API that returns true if the given number is odd.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

More

Packages that depend on is_odd