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

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

example/is_even_example.dart

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

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

  print('$number is ${isEven(number) ? '' : 'not'} even');
}
3
likes
160
points
40
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

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

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

is_odd

More

Packages that depend on is_even