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
65731f75
Unverified
Commit
65731f75
authored
Mar 02, 2018
by
Alexander Aprelev
Committed by
GitHub
Mar 02, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Attempt to fix flutter drive --preview-dart-2 errors. (#14897)
parent
673c5485
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
binding.dart
packages/flutter/lib/src/foundation/binding.dart
+7
-7
No files found.
packages/flutter/lib/src/foundation/binding.dart
View file @
65731f75
...
...
@@ -20,7 +20,7 @@ import 'platform.dart';
/// "type" key will be set to the string `_extensionType` to indicate
/// that this is a return value from a service extension, and the
/// "method" key will be set to the full name of the method.
typedef
Future
<
Map
<
String
,
String
>>
ServiceExtensionCallback
(
Map
<
String
,
String
>
parameters
);
typedef
Future
<
Map
<
String
,
dynamic
>>
ServiceExtensionCallback
(
Map
<
String
,
String
>
parameters
);
/// Base class for mixins that provide singleton services (also known as
/// "bindings").
...
...
@@ -135,7 +135,7 @@ abstract class BindingBase {
}
await
reassembleApplication
();
}
return
<
String
,
String
>{
return
<
String
,
dynamic
>{
'value'
:
defaultTargetPlatform
.
toString
()
.
substring
(
'
$TargetPlatform
.'
.
length
),
...
...
@@ -248,7 +248,7 @@ abstract class BindingBase {
name:
name
,
callback:
(
Map
<
String
,
String
>
parameters
)
async
{
await
callback
();
return
<
String
,
String
>{};
return
<
String
,
dynamic
>{};
}
);
}
...
...
@@ -279,7 +279,7 @@ abstract class BindingBase {
callback:
(
Map
<
String
,
String
>
parameters
)
async
{
if
(
parameters
.
containsKey
(
'enabled'
))
await
setter
(
parameters
[
'enabled'
]
==
'true'
);
return
<
String
,
String
>{
'enabled'
:
await
getter
()
?
'true'
:
'false'
};
return
<
String
,
dynamic
>{
'enabled'
:
await
getter
()
?
'true'
:
'false'
};
}
);
}
...
...
@@ -309,7 +309,7 @@ abstract class BindingBase {
callback:
(
Map
<
String
,
String
>
parameters
)
async
{
if
(
parameters
.
containsKey
(
name
))
await
setter
(
double
.
parse
(
parameters
[
name
]));
return
<
String
,
String
>{
name:
(
await
getter
()).
toString
()
};
return
<
String
,
dynamic
>{
name:
(
await
getter
()).
toString
()
};
}
);
}
...
...
@@ -338,7 +338,7 @@ abstract class BindingBase {
callback:
(
Map
<
String
,
String
>
parameters
)
async
{
if
(
parameters
.
containsKey
(
'value'
))
await
setter
(
parameters
[
'value'
]);
return
<
String
,
String
>{
'value'
:
await
getter
()
};
return
<
String
,
dynamic
>{
'value'
:
await
getter
()
};
}
);
}
...
...
@@ -365,7 +365,7 @@ abstract class BindingBase {
assert
(
method
==
methodName
);
dynamic
caughtException
;
StackTrace
caughtStack
;
Map
<
String
,
String
>
result
;
Map
<
String
,
dynamic
>
result
;
try
{
result
=
await
callback
(
parameters
);
}
catch
(
exception
,
stack
)
{
...
...
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