mirror of https://github.com/flutter/samples.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
890 B
36 lines
890 B
6 years ago
|
// Copyright 2018 The Chromium Authors. All rights reserved.
|
||
|
// Use of this source code is governed by a BSD-style license that can be
|
||
|
// found in the LICENSE file.
|
||
|
|
||
|
import 'package:built_collection/built_collection.dart';
|
||
|
import 'package:built_value/built_value.dart';
|
||
|
import 'package:built_value/serializer.dart';
|
||
|
|
||
|
part 'built_simple_object.g.dart';
|
||
|
|
||
|
abstract class BuiltSimpleObject
|
||
|
implements Built<BuiltSimpleObject, BuiltSimpleObjectBuilder> {
|
||
|
static Serializer<BuiltSimpleObject> get serializer =>
|
||
|
_$builtSimpleObjectSerializer;
|
||
|
|
||
|
@nullable
|
||
|
String get aString;
|
||
|
|
||
|
@nullable
|
||
|
int get anInt;
|
||
|
|
||
|
@nullable
|
||
|
double get aDouble;
|
||
|
|
||
|
BuiltList<String> get aListOfStrings;
|
||
|
|
||
|
BuiltList<int> get aListOfInts;
|
||
|
|
||
|
BuiltList<double> get aListOfDoubles;
|
||
|
|
||
|
BuiltSimpleObject._();
|
||
|
|
||
|
factory BuiltSimpleObject([updates(BuiltSimpleObjectBuilder b)]) =
|
||
|
_$BuiltSimpleObject;
|
||
|
}
|