Revert "make LocalHistoryRoute a proper super-mixin (#23382)" (#23430)

This reverts commit a3e0b0aee2.

This change broke the analyzer during the dartdoc step.
This commit is contained in:
Yegor
2018-10-23 15:26:10 -07:00
committed by GitHub
parent f7f72211b6
commit 3bbb3082b8
2 changed files with 6 additions and 4 deletions

View File

@@ -306,14 +306,16 @@ class LocalHistoryEntry {
}
}
/// A mixin used by routes to handle back navigations internally by popping a list.
/// A route that can handle back navigations internally by popping a list.
///
/// When a [Navigator] is instructed to pop, the current route is given an
/// opportunity to handle the pop internally. A `LocalHistoryRoute` handles the
/// opportunity to handle the pop internally. A LocalHistoryRoute handles the
/// pop internally if its list of local history entries is non-empty. Rather
/// than being removed as the current route, the most recent [LocalHistoryEntry]
/// is removed from the list and its [LocalHistoryEntry.onRemove] is called.
mixin LocalHistoryRoute<T> on Route<T> {
///
/// This class is typically used as a mixin.
abstract class LocalHistoryRoute<T> extends Route<T> {
List<LocalHistoryEntry> _localHistory;
/// Adds a local history entry to this route.

View File

@@ -12,7 +12,7 @@ final List<String> results = <String>[];
Set<TestRoute> routes = HashSet<TestRoute>();
class TestRoute extends Route<String> with LocalHistoryRoute<String> {
class TestRoute extends LocalHistoryRoute<String> {
TestRoute(this.name);
final String name;