callServiceExtension method Null safety
override
Invoke a specific service protocol extension method.
See https://api.dart.dev/stable/dart-developer/dart-developer-library.html.
Implementation
@override
Future<Response> callServiceExtension(String method,
{String? isolateId, Map<String, dynamic>? args}) {
if (args == null && isolateId == null) {
return _call(method);
} else if (args == null) {
return _call(method, {'isolateId': isolateId!});
} else {
args = Map.from(args);
if (isolateId != null) {
args['isolateId'] = isolateId;
}
return _call(method, args);
}
}