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
dcc7b144
Commit
dcc7b144
authored
Jun 22, 2016
by
pq
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated closure trampolines.
parent
352e2f57
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
framework.dart
packages/flutter/lib/src/widgets/framework.dart
+5
-2
No files found.
packages/flutter/lib/src/widgets/framework.dart
View file @
dcc7b144
...
...
@@ -304,6 +304,9 @@ abstract class Widget {
}
}
/// The signature of build() functions.
typedef
Widget
_BuildFunction
(
BuildContext
context
);
/// StatelessWidgets describe a way to compose other Widgets to form reusable
/// parts, which doesn't depend on anything other than the configuration
/// information in the object itself. (For compositions that can change
...
...
@@ -328,7 +331,7 @@ abstract class StatelessWidget extends Widget {
Widget
build
(
BuildContext
context
);
/// Trampoline to make the [build] closure library-accessible.
Widget
_build
(
BuildContext
context
)
=>
build
(
context
)
;
_BuildFunction
get
_build
=>
build
;
}
/// StatefulWidgets provide the configuration for
...
...
@@ -488,7 +491,7 @@ abstract class State<T extends StatefulWidget> {
Widget
build
(
BuildContext
context
);
/// Trampoline to make the [build] closure library-accessible.
Widget
_build
(
BuildContext
context
)
=>
build
(
context
)
;
_BuildFunction
get
_build
=>
build
;
/// Called when an Inherited widget in the ancestor chain has changed. Usually
/// there is nothing to do here; whenever this is called, build() is also
...
...
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