[go: up one dir, main page]

Skip to content
/ boolean Public

Utility functions to convert strings and numbers to bools.

License

Notifications You must be signed in to change notification settings

mjstel/boolean

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Utility functions to convert strings and numbers to bools.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages