boolean 1.0.1 boolean: ^1.0.1 copied to clipboard
Extension functions on strings and numbers to convert them to bools.
import 'package:boolean/boolean.dart';
void main() {
print('true'.asBool()); //true
print(1.asBool()); //true
print('abc'.asBool()); //false
print(0.asBool()); //false
}