boolean 2.0.0-nullsafety.0 copy "boolean: ^2.0.0-nullsafety.0" to clipboard
boolean: ^2.0.0-nullsafety.0 copied to clipboard

Extension functions on strings and numbers to convert them to bools.

example/boolean_example.dart

import 'package:boolean/boolean.dart';

void main() {
  print('true'.asBool()); //true
  print(1.asBool()); //true

  print('abc'.asBool()); //false
  print(0.asBool()); //false
}
1
likes
140
pub points
20%
popularity

Publisher

unverified uploader

Extension functions on strings and numbers to convert them to bools.

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-2-Clause (LICENSE)

More

Packages that depend on boolean