[flutter_tools] add package:http to forbidden imports test (#75925)

This commit is contained in:
Jonah Williams
2021-02-12 14:23:08 -08:00
committed by GitHub
parent 486ba89318
commit fb808b40f9
3 changed files with 27 additions and 4 deletions

View File

@@ -97,12 +97,12 @@ class CrashReporter {
/// wish to use your own server for collecting crash reports from Flutter Tools.
class CrashReportSender {
CrashReportSender({
@required http.Client client,
http.Client client,
@required Usage usage,
@required Platform platform,
@required Logger logger,
@required OperatingSystemUtils operatingSystemUtils,
}) : _client = client,
}) : _client = client ?? http.Client(),
_usage = usage,
_platform = platform,
_logger = logger,