addPath<T extends Portable> method
void
addPath<T extends Portable>(})
Register a path with a factory that constructs the Portable instance
Implementation
void addPath<T extends Portable>(
String path, {
required Portable Function() factory,
String? identity,
ApiScope? permissions,
}) {
paths.add(
ServicePath<T>(
path: path,
factory: factory,
identity: identity,
permissions: permissions,
),
);
}