withLayerName method
Returns a copy of this result with the given layerName attached.
Implementation
SecurityResult withLayerName(String name) {
return SecurityResult(
allowed: allowed,
riskScore: riskScore,
flags: flags,
message: message,
verdict: verdict,
layerName: name,
);
}