set literal conversions (#27811)
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user