guardContent function
Implementation
String guardContent(
ServerLifecycleComponent component,
String Function(Spec) formatter,
) {
return sequentialComponentContent(
component,
formatter,
className: component.guardClass.className,
interfaceName: (Guard).name,
resultType: (GuardResult).name,
methodName: 'protect',
methods: component.guards,
listName: 'guards',
itemName: 'guard',
shortCircuitOn: 'isBlock',
fallthrough: 'pass',
);
}