boolean 2.0.0-nullsafety.0 boolean: ^2.0.0-nullsafety.0 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
}