Skip to content
This repository was archived by the owner on May 20, 2023. It is now read-only.

Commit 8f6ed7f

Browse files
tijoforyounshahan
authored andcommitted
Add some trailing commas, so dartfmt can better format domServiceBinding.
Up until now, I always thought it was a list of bindings. Never realized this was a single provider and that the things listed in there were dependencies needed by the provider. PiperOrigin-RevId: 202867471
1 parent 520bf95 commit 8f6ed7f

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

lib/utils/browser/dom_service/angular_2.dart

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,16 @@ export 'package:angular_components/utils/browser/dom_service/dom_service.dart';
2121
// using dart's factory pattern.
2222

2323
/// Factory for [DomService].
24-
const domServiceBinding =
25-
const FactoryProvider(DomService, createDomService, deps: const [
26-
const [DomService, const Optional(), const SkipSelf()],
27-
const [Disposer, const Optional()],
28-
NgZone,
29-
Window
30-
]);
24+
const domServiceBinding = const FactoryProvider(
25+
DomService,
26+
createDomService,
27+
deps: const [
28+
const [DomService, const Optional(), const SkipSelf()],
29+
const [Disposer, const Optional()],
30+
NgZone,
31+
Window,
32+
],
33+
);
3134

3235
// Shared DomService resource. Currently there is only one per application.
3336
DomService _singletonService;

0 commit comments

Comments
 (0)