jsonp method
Returns a JSONP response.
You can override the contentType sent; by default it is application/javascript.
Implementation
Future<void> jsonp(
Object value, {
String callbackName = 'callback',
MediaType? contentType,
}) {
if (!isOpen) throw closed();
this.contentType = contentType ?? MediaType('application', 'javascript');
write('$callbackName(${serializer(value)})');
return close();
}