1
0
mirror of https://github.com/flutter/samples.git synced 2025-11-08 13:58:47 +00:00

Update jsonexample (#72)

- use latest dependencies
- update build.yaml for removed option
- rebuilt generated code
This commit is contained in:
Kevin Moore
2019-05-01 17:56:55 -07:00
committed by GitHub
parent edd51e019b
commit c68ee4ab9e
6 changed files with 46 additions and 86 deletions

View File

@@ -6,18 +6,6 @@ part of 'built_complex_object.dart';
// BuiltValueGenerator
// **************************************************************************
// ignore_for_file: always_put_control_body_on_new_line
// ignore_for_file: annotate_overrides
// ignore_for_file: avoid_annotating_with_dynamic
// ignore_for_file: avoid_catches_without_on_clauses
// ignore_for_file: avoid_returning_this
// ignore_for_file: lines_longer_than_80_chars
// ignore_for_file: omit_local_variable_types
// ignore_for_file: prefer_expression_function_bodies
// ignore_for_file: sort_constructors_first
// ignore_for_file: unnecessary_const
// ignore_for_file: unnecessary_new
Serializer<BuiltComplexObject> _$builtComplexObjectSerializer =
new _$BuiltComplexObjectSerializer();
@@ -165,7 +153,8 @@ class _$BuiltComplexObject extends BuiltComplexObject {
@override
final BuiltList<BuiltSimpleObject> aListOfObjects;
factory _$BuiltComplexObject([void updates(BuiltComplexObjectBuilder b)]) =>
factory _$BuiltComplexObject(
[void Function(BuiltComplexObjectBuilder) updates]) =>
(new BuiltComplexObjectBuilder()..update(updates)).build();
_$BuiltComplexObject._(
@@ -180,7 +169,8 @@ class _$BuiltComplexObject extends BuiltComplexObject {
: super._();
@override
BuiltComplexObject rebuild(void updates(BuiltComplexObjectBuilder b)) =>
BuiltComplexObject rebuild(
void Function(BuiltComplexObjectBuilder) updates) =>
(toBuilder()..update(updates)).build();
@override
@@ -297,12 +287,14 @@ class BuiltComplexObjectBuilder
@override
void replace(BuiltComplexObject other) {
if (other == null) throw new ArgumentError.notNull('other');
if (other == null) {
throw new ArgumentError.notNull('other');
}
_$v = other as _$BuiltComplexObject;
}
@override
void update(void updates(BuiltComplexObjectBuilder b)) {
void update(void Function(BuiltComplexObjectBuilder) updates) {
if (updates != null) updates(this);
}
@@ -343,3 +335,5 @@ class BuiltComplexObjectBuilder
return _$result;
}
}
// ignore_for_file: always_put_control_body_on_new_line,always_specify_types,annotate_overrides,avoid_annotating_with_dynamic,avoid_as,avoid_catches_without_on_clauses,avoid_returning_this,lines_longer_than_80_chars,omit_local_variable_types,prefer_expression_function_bodies,sort_constructors_first,test_types_in_equals,unnecessary_const,unnecessary_new

View File

@@ -6,18 +6,6 @@ part of 'built_simple_object.dart';
// BuiltValueGenerator
// **************************************************************************
// ignore_for_file: always_put_control_body_on_new_line
// ignore_for_file: annotate_overrides
// ignore_for_file: avoid_annotating_with_dynamic
// ignore_for_file: avoid_catches_without_on_clauses
// ignore_for_file: avoid_returning_this
// ignore_for_file: lines_longer_than_80_chars
// ignore_for_file: omit_local_variable_types
// ignore_for_file: prefer_expression_function_bodies
// ignore_for_file: sort_constructors_first
// ignore_for_file: unnecessary_const
// ignore_for_file: unnecessary_new
Serializer<BuiltSimpleObject> _$builtSimpleObjectSerializer =
new _$BuiltSimpleObjectSerializer();
@@ -137,7 +125,8 @@ class _$BuiltSimpleObject extends BuiltSimpleObject {
@override
final BuiltList<double> aListOfDoubles;
factory _$BuiltSimpleObject([void updates(BuiltSimpleObjectBuilder b)]) =>
factory _$BuiltSimpleObject(
[void Function(BuiltSimpleObjectBuilder) updates]) =>
(new BuiltSimpleObjectBuilder()..update(updates)).build();
_$BuiltSimpleObject._(
@@ -150,7 +139,7 @@ class _$BuiltSimpleObject extends BuiltSimpleObject {
: super._();
@override
BuiltSimpleObject rebuild(void updates(BuiltSimpleObjectBuilder b)) =>
BuiltSimpleObject rebuild(void Function(BuiltSimpleObjectBuilder) updates) =>
(toBuilder()..update(updates)).build();
@override
@@ -245,12 +234,14 @@ class BuiltSimpleObjectBuilder
@override
void replace(BuiltSimpleObject other) {
if (other == null) throw new ArgumentError.notNull('other');
if (other == null) {
throw new ArgumentError.notNull('other');
}
_$v = other as _$BuiltSimpleObject;
}
@override
void update(void updates(BuiltSimpleObjectBuilder b)) {
void update(void Function(BuiltSimpleObjectBuilder) updates) {
if (updates != null) updates(this);
}
@@ -285,3 +276,5 @@ class BuiltSimpleObjectBuilder
return _$result;
}
}
// ignore_for_file: always_put_control_body_on_new_line,always_specify_types,annotate_overrides,avoid_annotating_with_dynamic,avoid_as,avoid_catches_without_on_clauses,avoid_returning_this,lines_longer_than_80_chars,omit_local_variable_types,prefer_expression_function_bodies,sort_constructors_first,test_types_in_equals,unnecessary_const,unnecessary_new

View File

@@ -6,18 +6,6 @@ part of serializers;
// BuiltValueGenerator
// **************************************************************************
// ignore_for_file: always_put_control_body_on_new_line
// ignore_for_file: annotate_overrides
// ignore_for_file: avoid_annotating_with_dynamic
// ignore_for_file: avoid_catches_without_on_clauses
// ignore_for_file: avoid_returning_this
// ignore_for_file: lines_longer_than_80_chars
// ignore_for_file: omit_local_variable_types
// ignore_for_file: prefer_expression_function_bodies
// ignore_for_file: sort_constructors_first
// ignore_for_file: unnecessary_const
// ignore_for_file: unnecessary_new
Serializers _$serializers = (new Serializers().toBuilder()
..add(BuiltComplexObject.serializer)
..add(BuiltSimpleObject.serializer)
@@ -43,3 +31,5 @@ Serializers _$serializers = (new Serializers().toBuilder()
const FullType(BuiltList, const [const FullType(BuiltSimpleObject)]),
() => new ListBuilder<BuiltSimpleObject>()))
.build();
// ignore_for_file: always_put_control_body_on_new_line,always_specify_types,annotate_overrides,avoid_annotating_with_dynamic,avoid_as,avoid_catches_without_on_clauses,avoid_returning_this,lines_longer_than_80_chars,omit_local_variable_types,prefer_expression_function_bodies,sort_constructors_first,test_types_in_equals,unnecessary_const,unnecessary_new