toBoolStrict method

BoolBuilder toBoolStrict({
  1. String? message,
})

Transform the value to a boolean using strict parsing.

Implementation

BoolBuilder toBoolStrict({String? message}) {
  if (chain.coercedToBool) return BoolBuilder(chain: chain);
  chain.setTransform(CoercionKind.bool_, (child) => tr.toBoolStrict(child));
  return BoolBuilder(chain: chain);
}