1
0
mirror of https://github.com/flutter/samples.git synced 2025-11-09 22:38:42 +00:00

Updates for 1.9 (#139)

This commit is contained in:
Andrew Brogdon
2019-09-10 08:47:34 -07:00
committed by GitHub
parent f955976837
commit 16fa475ff8
31 changed files with 194 additions and 265 deletions

View File

@@ -24,9 +24,9 @@ void main() {
'aString': 'Blah, blah, blah.',
'anInt': 1,
'aDouble': 1.0,
'aListOfStrings': [],
'aListOfInts': [],
'aListOfDoubles': []
'aListOfStrings': <String>[],
'aListOfInts': <int>[],
'aListOfDoubles': <double>[]
};
const unexpectedPropertiesJson = <String, dynamic>{
@@ -73,9 +73,9 @@ void main() {
expect(simpleObject.aString, "Blah, blah, blah.");
expect(simpleObject.anInt, 1);
expect(simpleObject.aDouble, 1.0);
expect(simpleObject.aListOfStrings, []);
expect(simpleObject.aListOfInts, []);
expect(simpleObject.aListOfDoubles, []);
expect(simpleObject.aListOfStrings, <String>[]);
expect(simpleObject.aListOfInts, <int>[]);
expect(simpleObject.aListOfDoubles, <double>[]);
});
test('Extra properties', () {
@@ -124,9 +124,9 @@ void main() {
expect(simpleObject.aString, "Blah, blah, blah.");
expect(simpleObject.anInt, 1);
expect(simpleObject.aDouble, 1.0);
expect(simpleObject.aListOfStrings, []);
expect(simpleObject.aListOfInts, []);
expect(simpleObject.aListOfDoubles, []);
expect(simpleObject.aListOfStrings, <String>[]);
expect(simpleObject.aListOfInts, <int>[]);
expect(simpleObject.aListOfDoubles, <double>[]);
});
test('Unexpected properties are ignored', () {
@@ -178,9 +178,9 @@ void main() {
expect(simpleObject.aString, "Blah, blah, blah.");
expect(simpleObject.anInt, 1);
expect(simpleObject.aDouble, 1.0);
expect(simpleObject.aListOfStrings, []);
expect(simpleObject.aListOfInts, []);
expect(simpleObject.aListOfDoubles, []);
expect(simpleObject.aListOfStrings, <String>[]);
expect(simpleObject.aListOfInts, <int>[]);
expect(simpleObject.aListOfDoubles, <double>[]);
});
test('Unexpected properties are ignored', () {