boolean 1.0.1
boolean: ^1.0.1 copied to clipboard

Dart native js
Flutter Android iOS web

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

Utility functions to convert strings and numbers to bools.

Usage #

A simple usage example:

import 'package:boolean/boolean.dart';

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

  print('abc'.asBool()); //false
  print(0.asBool()); //false
}

Created from templates made available by Stagehand under a BSD-style license.

1
likes
110
pub points
7%
popularity

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

Repository (GitHub)
View/report issues

Documentation

API reference

Uploader

mirco.juestel@gmail.com

License

BSD (LICENSE)

More

Packages that depend on boolean