set literal conversions (#27811)

This commit is contained in:
Phil Quitslund
2019-03-06 11:05:16 -08:00
committed by GitHub
parent 608b03c79b
commit 802eca29d2
54 changed files with 133 additions and 138 deletions

View File

@@ -365,7 +365,7 @@ class _Reporter {
String _lastProgressSuffix;
/// The set of all subscriptions to various streams.
final Set<StreamSubscription<void>> _subscriptions = Set<StreamSubscription<void>>();
final Set<StreamSubscription<void>> _subscriptions = <StreamSubscription<void>>{};
/// A callback called when the engine begins running [liveTest].
void _onTestStarted(LiveTest liveTest) {

View File

@@ -551,7 +551,7 @@ class WidgetTester extends WidgetController implements HitTestDispatcher, Ticker
@override
Ticker createTicker(TickerCallback onTick) {
_tickers ??= Set<_TestTicker>();
_tickers ??= <_TestTicker>{};
final _TestTicker result = _TestTicker(onTick, _removeTicker);
_tickers.add(result);
return result;