create static method

Context create(
  1. String method,
  2. String path, {
  3. Object? body,
  4. Map<String, String>? headers,
  5. String remoteIp = '127.0.0.1',
  6. int? contentLength,
})

Creates a test context with custom method.

Implementation

static Context create(
  String method,
  String path, {
  Object? body,
  Map<String, String>? headers,
  String remoteIp = '127.0.0.1',
  int? contentLength,
}) {
  return _create(
    method,
    path,
    body: body,
    headers: headers,
    remoteIp: remoteIp,
    contentLength: contentLength,
  );
}