transformers/boolean library

Boolean type transformers.

This file contains transformers for converting values to boolean types with different levels of permissiveness.

Functions

toBool(IValidator child, {String? message}) IValidator
Coerces a value to a boolean (standard mode).
toBoolLenient(IValidator child, {String? message}) IValidator
Lenient / permissive bool coercion.
toBoolStrict(IValidator child, {String? message}) IValidator
Strict bool coercion.