Endpoint class
Includes annotations used by Shorebird. Denotes the function as an entrypoint for serverless execution. e.g.
import 'package:shorebird/annotations.dart';
import 'package:shorebird/shorebird.dart';
@Endpoint()
Future<String> helloWorld(RequestContext context) {
return Future.value('Hello World');
}
shorebird generate
will generate server and client code for this function.
Constructors
- Endpoint.new()
-
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- 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