We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 503218c commit 5ea4990Copy full SHA for 5ea4990
packages/flutter/lib/src/material/page.dart
@@ -2,6 +2,8 @@
2
// Use of this source code is governed by a BSD-style license that can be
3
// found in the LICENSE file.
4
5
+import 'dart:async';
6
+
7
import 'package:flutter/animation.dart';
8
import 'package:flutter/widgets.dart';
9
@@ -41,8 +43,9 @@ const Duration kMaterialPageRouteTransitionDuration = const Duration(millisecond
41
43
class MaterialPageRoute<T> extends PageRoute<T> {
42
44
MaterialPageRoute({
45
this.builder,
46
+ Completer<T> completer,
47
NamedRouteSettings settings: const NamedRouteSettings()
- }) : super(settings: settings) {
48
+ }) : super(completer: completer, settings: settings) {
49
assert(builder != null);
50
assert(opaque);
51
}
0 commit comments