Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
Front-End
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abdullh.alsoleman
Front-End
Commits
c38b8434
Commit
c38b8434
authored
Oct 10, 2017
by
Alexander Aprelev
Committed by
GitHub
Oct 10, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move -referencing asserts to constructor body. (#12478)
parent
7f5b973c
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
6 deletions
+9
-6
route.dart
packages/flutter/lib/src/cupertino/route.dart
+3
-2
page.dart
packages/flutter/lib/src/material/page.dart
+3
-2
pages.dart
packages/flutter/lib/src/widgets/pages.dart
+3
-2
No files found.
packages/flutter/lib/src/cupertino/route.dart
View file @
c38b8434
...
@@ -88,8 +88,9 @@ class CupertinoPageRoute<T> extends PageRoute<T> {
...
@@ -88,8 +88,9 @@ class CupertinoPageRoute<T> extends PageRoute<T> {
assert
(
settings
!=
null
),
assert
(
settings
!=
null
),
assert
(
maintainState
!=
null
),
assert
(
maintainState
!=
null
),
assert
(
fullscreenDialog
!=
null
),
assert
(
fullscreenDialog
!=
null
),
assert
(
opaque
),
// PageRoute makes it return true.
super
(
settings:
settings
,
fullscreenDialog:
fullscreenDialog
)
{
super
(
settings:
settings
,
fullscreenDialog:
fullscreenDialog
);
assert
(
opaque
);
// PageRoute makes it return true.
}
/// Builds the primary contents of the route.
/// Builds the primary contents of the route.
final
WidgetBuilder
builder
;
final
WidgetBuilder
builder
;
...
...
packages/flutter/lib/src/material/page.dart
View file @
c38b8434
...
@@ -70,8 +70,9 @@ class MaterialPageRoute<T> extends PageRoute<T> {
...
@@ -70,8 +70,9 @@ class MaterialPageRoute<T> extends PageRoute<T> {
this
.
maintainState
:
true
,
this
.
maintainState
:
true
,
bool
fullscreenDialog:
false
,
bool
fullscreenDialog:
false
,
})
:
assert
(
builder
!=
null
),
})
:
assert
(
builder
!=
null
),
assert
(
opaque
),
super
(
settings:
settings
,
fullscreenDialog:
fullscreenDialog
)
{
super
(
settings:
settings
,
fullscreenDialog:
fullscreenDialog
);
assert
(
opaque
);
}
/// Builds the primary contents of the route.
/// Builds the primary contents of the route.
final
WidgetBuilder
builder
;
final
WidgetBuilder
builder
;
...
...
packages/flutter/lib/src/widgets/pages.dart
View file @
c38b8434
...
@@ -81,10 +81,11 @@ class PageRouteBuilder<T> extends PageRoute<T> {
...
@@ -81,10 +81,11 @@ class PageRouteBuilder<T> extends PageRoute<T> {
this
.
maintainState
:
true
,
this
.
maintainState
:
true
,
})
:
assert
(
pageBuilder
!=
null
),
})
:
assert
(
pageBuilder
!=
null
),
assert
(
transitionsBuilder
!=
null
),
assert
(
transitionsBuilder
!=
null
),
assert
(
opaque
!=
null
),
assert
(
barrierDismissible
!=
null
),
assert
(
barrierDismissible
!=
null
),
assert
(
maintainState
!=
null
),
assert
(
maintainState
!=
null
),
super
(
settings:
settings
);
super
(
settings:
settings
)
{
assert
(
opaque
!=
null
);
}
/// Used build the route's primary contents.
/// Used build the route's primary contents.
///
///
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment