bool_dogoo 0.1.0 bool_dogoo: ^0.1.0 copied to clipboard
Provides simple functions and extensions for bool type. This is part of the 'dogoo' package that provides 'Dart' and 'Flutter' utilities.
example/bool_dogoo_example.dart
// ignore_for_file: avoid_print
import 'package:bool_dogoo/bool_dogoo.dart';
void main() {
const bool myBoolT = true;
const bool myBoolF = false;
print(myBoolT.toInt()); // 1
print(myBoolF.toDouble()); // 0.0
}