ifSupport<T> function
Implementation
T ifSupport<T>(RuleContext ctx, Supplier<T?> support) {
final t = support();
if (t == null) {
throw UnsupportedTypeContextException(ctx);
}
return t;
}
T ifSupport<T>(RuleContext ctx, Supplier<T?> support) {
final t = support();
if (t == null) {
throw UnsupportedTypeContextException(ctx);
}
return t;
}