Expose class
Exposes a Controller or a Controller method to the Internet. Example:
@Expose('/elements')
class ElementController extends Controller {
@Expose('/')
List<Element> getList() => someComputationHere();
@Expose('/int:elementId')
getElement(int elementId) => someOtherComputation();
}
Constructors
-
Expose(String? path, {String method = 'GET', Iterable<
RequestHandler> ? middleware = const [], String? as, List<String> allowNull = const []}) -
const
-
Expose.method(String method, {Iterable<
RequestHandler> ? middleware, String? as, List<String> allowNull = const []}) -
const
Properties
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