If<T> constructor
Creates a If-case OvO schema.
conditionis the condition for the if case.thenis the value to be returned if the condition validate passes.orElseis the value to be returned if the condition is false.
If orElse is not provided, an OvOException is thrown when the
condition is false.
Implementation
const If(this.condition, {required this.then, this.orElse, this.message});