toInt method

IntBuilder toInt({
  1. String? message,
})

Transform the value to an integer using standard parsing.

Implementation

IntBuilder toInt({String? message}) {
  if (chain.coercedToInt) return IntBuilder(chain: chain);
  chain.setTransform(CoercionKind.int_, (child) => tr.toInt(child));
  return IntBuilder(chain: chain);
}