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
4f2c6dff
Commit
4f2c6dff
authored
Dec 09, 2016
by
Ian Hickson
Committed by
GitHub
Dec 09, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add annotations to the foundation Binding (#7214)
parent
c677e80c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
binding.dart
packages/flutter/lib/src/foundation/binding.dart
+9
-0
No files found.
packages/flutter/lib/src/foundation/binding.dart
View file @
4f2c6dff
...
...
@@ -72,6 +72,8 @@ abstract class BindingBase {
/// be exposed as `MixinClassName.instance`, a static getter that returns
/// `MixinClassName._instance`, a static field that is set by
/// `initInstances()`.
@protected
@mustCallSuper
void
initInstances
()
{
assert
(!
_debugInitialized
);
assert
(()
{
_debugInitialized
=
true
;
return
true
;
});
...
...
@@ -97,6 +99,8 @@ abstract class BindingBase {
/// See also:
///
/// * <https://github.com/dart-lang/sdk/blob/master/runtime/vm/service/service.md#rpcs-requests-and-responses>
@protected
@mustCallSuper
void
initServiceExtensions
()
{
assert
(!
_debugServiceExtensionsRegistered
);
registerSignalServiceExtension
(
...
...
@@ -134,6 +138,7 @@ abstract class BindingBase {
/// no value.
///
/// Calls the `callback` callback when the service extension is called.
@protected
void
registerSignalServiceExtension
({
@required
String
name
,
@required
VoidCallback
callback
...
...
@@ -161,6 +166,7 @@ abstract class BindingBase {
///
/// Calls the `setter` callback with the new value when the
/// service extension method is called with a new value.
@protected
void
registerBoolServiceExtension
({
String
name
,
@required
ValueGetter
<
bool
>
getter
,
...
...
@@ -190,6 +196,7 @@ abstract class BindingBase {
///
/// Calls the `setter` callback with the new value when the
/// service extension method is called with a new value.
@protected
void
registerNumericServiceExtension
({
@required
String
name
,
@required
ValueGetter
<
double
>
getter
,
...
...
@@ -218,6 +225,7 @@ abstract class BindingBase {
///
/// Calls the `setter` callback with the new value when the
/// service extension method is called with a new value.
@protected
void
registerStringServiceExtension
({
@required
String
name
,
@required
ValueGetter
<
String
>
getter
,
...
...
@@ -246,6 +254,7 @@ abstract class BindingBase {
/// logs.
///
/// The returned map will be mutated.
@protected
void
registerServiceExtension
({
@required
String
name
,
@required
ServiceExtensionCallback
callback
...
...
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