DVBackendFunction class

Annotation for a Dartvel Backend Function

Constructors

DVBackendFunction({List<DVMiddlewareKey> middleware = const <DVMiddlewareKey>[], String? policy, DVMfa? mfa, String? rawPath, String? rawPathSuffix, DVAITool? aiTool})
const

Properties

aiTool → DVAITool?
Declares this backend function an AI tool, the same as @DVAITool on any other function: it is added to the generated AI tool registry (ai_tools.g.dart) with this description, even when the project does not expose every backend function as a tool. MCP, WebMCP, App Intents and App Functions are planned to read this one registry; none exists yet.
final
hashCode → int
The hash code for this object.
no setterinherited
mfa → DVMfa?
The second factor the caller's session must have presented, or null for none: DVMfa.required for one at some point in the session, DVMfa.recent(Duration(minutes: 15)) for one within the window.
final
middleware → List<DVMiddlewareKey>
Ordered middleware executed before this declaration.
final
policy → String?
final
rawPath → String?
The exact path the function is served at, outside the API base path, such as '/payments/webhook'. Mutually exclusive with rawPathSuffix.
final
rawPathSuffix → String?
Appended to the generated path: '/public' on functions/catalog.get.dart serves <apiBasePath>/catalog/public. Mutually exclusive with rawPath.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited