asbool_extension library
A simple tool to convert a dart object, including null
, in
a bool
(true|false
), quite similar to how works the
double NOT operator !!
in Javascript and Typescript.
This lib can be used like a helper method (asBool(value)
) or like an extension (<any>.asBool
).
Classes
- BoolHelper
-
Helper class with a single method to convert a
dynamic
object to abool
Extensions
- WhateverToBoolExtension on dynamic
-
Extension to add the property
.asBool
to everything in dart