is_even

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

Usage

import 'package:is_even/is_even.dart';

isEven(0);
//=> true
isEven(1);
//=> false
isEven(2);
//=> true
isEven(3);
//=> false

Disclaimer

Implementation shamelessly stolen from the JavaScript package is-even

Libraries

is_even
Support for doing something awesome. [...]