ApiEndpoint constructor
Create a new ApiEndpoint given an id
and an optional handler
.
Implementation
ApiEndpoint({
required this.id,
this.handler,
}) {
if (id < 0) {
throw ArgumentError('Must not be negative', 'id');
}
}
Create a new ApiEndpoint given an id
and an optional handler
.
ApiEndpoint({
required this.id,
this.handler,
}) {
if (id < 0) {
throw ArgumentError('Must not be negative', 'id');
}
}