mirror of
https://github.com/flutter/flutter
synced 2024-08-25 02:46:31 +00:00
Last literals get their types.
Last fixes to get the repo running clean checking for annotations on list and map literals.
This commit is contained in:
parent
a5eb4c04c7
commit
98ef58396a
|
@ -181,7 +181,7 @@ class CalculationManager {
|
|||
SendPort sender = message.sendPort;
|
||||
Calculator calculator = new Calculator(
|
||||
onProgressListener: (double completed, double total) {
|
||||
sender.send([ completed, total ]);
|
||||
sender.send(<double>[ completed, total ]);
|
||||
},
|
||||
onResultListener: (String result) {
|
||||
sender.send(result);
|
||||
|
|
|
@ -31,7 +31,7 @@ class _DataTableDemoState extends State<DataTableDemo> {
|
|||
int _sortColumnIndex;
|
||||
bool _sortAscending = true;
|
||||
|
||||
final List<Desert> _deserts = [
|
||||
final List<Desert> _deserts = <Desert>[
|
||||
new Desert('Frozen yogurt', 159, 6.0, 24, 4.0, 87, 14, 1),
|
||||
new Desert('Ice cream sandwich', 237, 9.0, 37, 4.3, 129, 8, 1),
|
||||
new Desert('Eclair', 262, 16.0, 24, 6.0, 337, 6, 7),
|
||||
|
|
|
@ -380,7 +380,7 @@ class _JumpingJackSide extends Node {
|
|||
|
||||
void animateJumping() {
|
||||
actions.stopAll();
|
||||
actions.run(new ActionSequence([
|
||||
actions.run(new ActionSequence(<Action>[
|
||||
_createPoseAction(null, 0, 0.5),
|
||||
new ActionCallFunction(_animateJumpingLoop)
|
||||
]));
|
||||
|
|
|
@ -386,7 +386,7 @@ class Sun extends Node {
|
|||
|
||||
if (active) {
|
||||
for (Ray ray in _rays) {
|
||||
actions.run(new ActionSequence([
|
||||
actions.run(new ActionSequence(<Action>[
|
||||
new ActionDelay(1.5),
|
||||
new ActionTween(
|
||||
(double a) => ray.opacity = a,
|
||||
|
@ -427,7 +427,7 @@ class Ray extends Sprite {
|
|||
double scaleTime = randomSignedDouble() * 2.0 + 4.0;
|
||||
|
||||
actions.run(new ActionRepeatForever(
|
||||
new ActionSequence([
|
||||
new ActionSequence(<Action>[
|
||||
new ActionTween((double a) => scaleX = a, scaleX, scaleX * 0.5, scaleTime),
|
||||
new ActionTween((double a) => scaleX = a, scaleX * 0.5, scaleX, scaleTime)
|
||||
])
|
||||
|
|
|
@ -100,7 +100,7 @@ class MarkdownStyleRaw {
|
|||
Map<String, TextStyle> get styles => _styles;
|
||||
|
||||
void _init() {
|
||||
_styles = {
|
||||
_styles = <String, TextStyle>{
|
||||
'a': a,
|
||||
'p': p,
|
||||
'li': p,
|
||||
|
|
Loading…
Reference in a new issue