alexeyinkin commented on code in PR #23378:
URL: https://github.com/apache/beam/pull/23378#discussion_r982217622
##########
playground/frontend/playground_components/lib/src/services/symbols/symbols_notifier.dart:
##########
@@ -0,0 +1,36 @@
+import 'dart:async';
+
+import 'package:flutter/widgets.dart';
+import 'package:highlight/highlight_core.dart';
+
+import '../../models/symbols_dictionary.dart';
+import 'loaders/abstract.dart';
+
+class SymbolsNotifier extends ChangeNotifier {
+ final _dictionaryFuturesByByMode = <Mode, Future<SymbolsDictionary>>{};
Review Comment:
Fixed.
##########
playground/frontend/playground_components/lib/src/services/symbols/symbols_notifier.dart:
##########
@@ -0,0 +1,36 @@
+import 'dart:async';
+
+import 'package:flutter/widgets.dart';
+import 'package:highlight/highlight_core.dart';
+
+import '../../models/symbols_dictionary.dart';
+import 'loaders/abstract.dart';
+
+class SymbolsNotifier extends ChangeNotifier {
+ final _dictionaryFuturesByByMode = <Mode, Future<SymbolsDictionary>>{};
+ final _dictionariesByMode = <Mode, SymbolsDictionary>{};
+
+ void addLoader(Mode mode, AbstractSymbolsLoader loader) {
+ unawaited(_load(mode, loader));
+ }
+
+ Future<SymbolsDictionary> _load(
Review Comment:
Done.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]