Вставьте запятую перед закрывающей скобкой @Component(...)
, и вы, вероятно, получите то, что ожидаете.
Вот что dartfmt выдает после вставки запятой:
import 'package:angular/angular.dart';
import 'package:angular_router/angular_router.dart';
import 'routes.dart';
@Component(
selector: 'my-app',
templateUrl: 'app_component.html',
directives: [routerDirectives],
providers: [
const ClassProvider(Routes),
],
styleUrls: ['package:angular_components/app_layout/layout.scss.css'],
)
class AppComponent {
final Routes routes;
AppComponent(this.routes);
}