extract method

  1. @override
Future<Result<String?, Rejection>> extract(
  1. Request request
)
override

Produces the value, or the rejection that stops the handler.

Implementation

@override
Future<Result<String?, Rejection>> extract(Request request) async {
  final query = request.url.query;
  return Ok(query.isEmpty ? null : query);
}