Skip to content

Commit 3bfd938

Browse files
Update generic parameters to work with strong mode <1.23
1 parent 5906887 commit 3bfd938

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/src/component_declaration/component_base.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -416,8 +416,8 @@ abstract class UiProps
416416
///
417417
/// Necessary in order to work around Dart 1.23 strong mode change that disallows conflicting private members
418418
/// in mixins: <https://github.com/dart-lang/sdk/issues/28809>.
419-
abstract class _OverReactMapViewBase {
420-
Map get _map;
419+
abstract class _OverReactMapViewBase<K, V> {
420+
Map<K, V> get _map;
421421
}
422422

423423
/// Works in conjunction with [MapViewMixin] to provide [dart.collection.MapView]-like
@@ -453,7 +453,7 @@ abstract class StateMapViewMixin implements _OverReactMapViewBase {
453453
///
454454
/// For use by concrete [UiProps] and [UiState] implementations (either generated or manual),
455455
/// and thus must remain public.
456-
abstract class MapViewMixin<K, V> implements _OverReactMapViewBase {
456+
abstract class MapViewMixin<K, V> implements _OverReactMapViewBase<K, V> {
457457
V operator[](Object key) => _map[key];
458458
void operator[]=(K key, V value) { _map[key] = value; }
459459
void addAll(Map<K, V> other) { _map.addAll(other); }

0 commit comments

Comments
 (0)