SecurityResult.allow constructor
SecurityResult.allow({})
Convenience constructor for a fully allowed result.
Implementation
factory SecurityResult.allow({
double riskScore = 0.0,
List<String> flags = const [],
String message = 'OK',
String? layerName,
}) {
return SecurityResult(
allowed: true,
riskScore: riskScore,
flags: flags,
message: message,
verdict: SecurityVerdict.allowed,
layerName: layerName,
);
}