requireGate method
Throws a FeatureGateException if gate is not enabled.
Use this to guard code paths that require a specific gate.
Implementation
void requireGate(FeatureGate gate, {String? message}) {
if (!isEnabled(gate)) {
throw FeatureGateException(
gate,
message ?? '${gate.name} is required but not enabled.',
);
}
}