newFormRequest method
Constructs a new FormRequest that will use this client to send the request. Throws a StateError if this client has been closed.
Implementation
@override
FormRequest newFormRequest() {
verifyNotClosed();
// ignore: deprecated_member_use_from_same_package
final request = MockFormRequest.fromClient(this, _transport);
registerAndDecorateRequest(request);
return request;
}