Helper to through flutter errors if condition is true
condition
void throwIf(bool condition, String message, {Element? element}) { if (condition) { throwError(message, element: element); } }