[code_builder] Drop unused dev_deps and rebuild (#2407)
diff --git a/pkgs/code_builder/lib/src/specs/class.g.dart b/pkgs/code_builder/lib/src/specs/class.g.dart
index 3a558a5..3ea0e7d 100644
--- a/pkgs/code_builder/lib/src/specs/class.g.dart
+++ b/pkgs/code_builder/lib/src/specs/class.g.dart
@@ -37,7 +37,7 @@
final String name;
factory _$Class([void Function(ClassBuilder)? updates]) =>
- (new ClassBuilder()..update(updates)).build() as _$Class;
+ (ClassBuilder()..update(updates)).build() as _$Class;
_$Class._({
required this.abstract,
@@ -54,31 +54,13 @@
required this.methods,
required this.fields,
required this.name,
- }) : super._() {
- BuiltValueNullFieldError.checkNotNull(abstract, r'Class', 'abstract');
- BuiltValueNullFieldError.checkNotNull(sealed, r'Class', 'sealed');
- BuiltValueNullFieldError.checkNotNull(mixin, r'Class', 'mixin');
- BuiltValueNullFieldError.checkNotNull(annotations, r'Class', 'annotations');
- BuiltValueNullFieldError.checkNotNull(docs, r'Class', 'docs');
- BuiltValueNullFieldError.checkNotNull(implements, r'Class', 'implements');
- BuiltValueNullFieldError.checkNotNull(mixins, r'Class', 'mixins');
- BuiltValueNullFieldError.checkNotNull(types, r'Class', 'types');
- BuiltValueNullFieldError.checkNotNull(
- constructors,
- r'Class',
- 'constructors',
- );
- BuiltValueNullFieldError.checkNotNull(methods, r'Class', 'methods');
- BuiltValueNullFieldError.checkNotNull(fields, r'Class', 'fields');
- BuiltValueNullFieldError.checkNotNull(name, r'Class', 'name');
- }
-
+ }) : super._();
@override
Class rebuild(void Function(ClassBuilder) updates) =>
(toBuilder()..update(updates)).build();
@override
- _$ClassBuilder toBuilder() => new _$ClassBuilder()..replace(this);
+ _$ClassBuilder toBuilder() => _$ClassBuilder()..replace(this);
@override
bool operator ==(Object other) {
@@ -339,7 +321,6 @@
@override
void replace(Class other) {
- ArgumentError.checkNotNull(other, 'other');
_$v = other as _$Class;
}
@@ -356,7 +337,7 @@
try {
_$result =
_$v ??
- new _$Class._(
+ _$Class._(
abstract: BuiltValueNullFieldError.checkNotNull(
abstract,
r'Class',
@@ -405,11 +386,7 @@
_$failedField = 'fields';
fields.build();
} catch (e) {
- throw new BuiltValueNestedFieldError(
- r'Class',
- _$failedField,
- e.toString(),
- );
+ throw BuiltValueNestedFieldError(r'Class', _$failedField, e.toString());
}
rethrow;
}
diff --git a/pkgs/code_builder/lib/src/specs/code.g.dart b/pkgs/code_builder/lib/src/specs/code.g.dart
index 27d3f45..8b9f33d 100644
--- a/pkgs/code_builder/lib/src/specs/code.g.dart
+++ b/pkgs/code_builder/lib/src/specs/code.g.dart
@@ -11,18 +11,15 @@
final BuiltList<Code> statements;
factory _$Block([void Function(BlockBuilder)? updates]) =>
- (new BlockBuilder()..update(updates)).build() as _$Block;
+ (BlockBuilder()..update(updates)).build() as _$Block;
- _$Block._({required this.statements}) : super._() {
- BuiltValueNullFieldError.checkNotNull(statements, r'Block', 'statements');
- }
-
+ _$Block._({required this.statements}) : super._();
@override
Block rebuild(void Function(BlockBuilder) updates) =>
(toBuilder()..update(updates)).build();
@override
- _$BlockBuilder toBuilder() => new _$BlockBuilder()..replace(this);
+ _$BlockBuilder toBuilder() => _$BlockBuilder()..replace(this);
@override
bool operator ==(Object other) {
@@ -73,7 +70,6 @@
@override
void replace(Block other) {
- ArgumentError.checkNotNull(other, 'other');
_$v = other as _$Block;
}
@@ -88,18 +84,14 @@
_$Block _build() {
_$Block _$result;
try {
- _$result = _$v ?? new _$Block._(statements: statements.build());
+ _$result = _$v ?? _$Block._(statements: statements.build());
} catch (_) {
late String _$failedField;
try {
_$failedField = 'statements';
statements.build();
} catch (e) {
- throw new BuiltValueNestedFieldError(
- r'Block',
- _$failedField,
- e.toString(),
- );
+ throw BuiltValueNestedFieldError(r'Block', _$failedField, e.toString());
}
rethrow;
}
diff --git a/pkgs/code_builder/lib/src/specs/constructor.g.dart b/pkgs/code_builder/lib/src/specs/constructor.g.dart
index 4a72a02..032e1f0 100644
--- a/pkgs/code_builder/lib/src/specs/constructor.g.dart
+++ b/pkgs/code_builder/lib/src/specs/constructor.g.dart
@@ -33,7 +33,7 @@
final Reference? redirect;
factory _$Constructor([void Function(ConstructorBuilder)? updates]) =>
- (new ConstructorBuilder()..update(updates)).build() as _$Constructor;
+ (ConstructorBuilder()..update(updates)).build() as _$Constructor;
_$Constructor._({
required this.annotations,
@@ -48,39 +48,13 @@
this.lambda,
this.name,
this.redirect,
- }) : super._() {
- BuiltValueNullFieldError.checkNotNull(
- annotations,
- r'Constructor',
- 'annotations',
- );
- BuiltValueNullFieldError.checkNotNull(docs, r'Constructor', 'docs');
- BuiltValueNullFieldError.checkNotNull(
- optionalParameters,
- r'Constructor',
- 'optionalParameters',
- );
- BuiltValueNullFieldError.checkNotNull(
- requiredParameters,
- r'Constructor',
- 'requiredParameters',
- );
- BuiltValueNullFieldError.checkNotNull(
- initializers,
- r'Constructor',
- 'initializers',
- );
- BuiltValueNullFieldError.checkNotNull(external, r'Constructor', 'external');
- BuiltValueNullFieldError.checkNotNull(constant, r'Constructor', 'constant');
- BuiltValueNullFieldError.checkNotNull(factory, r'Constructor', 'factory');
- }
-
+ }) : super._();
@override
Constructor rebuild(void Function(ConstructorBuilder) updates) =>
(toBuilder()..update(updates)).build();
@override
- _$ConstructorBuilder toBuilder() => new _$ConstructorBuilder()..replace(this);
+ _$ConstructorBuilder toBuilder() => _$ConstructorBuilder()..replace(this);
@override
bool operator ==(Object other) {
@@ -309,7 +283,6 @@
@override
void replace(Constructor other) {
- ArgumentError.checkNotNull(other, 'other');
_$v = other as _$Constructor;
}
@@ -326,7 +299,7 @@
try {
_$result =
_$v ??
- new _$Constructor._(
+ _$Constructor._(
annotations: annotations.build(),
docs: docs.build(),
optionalParameters: optionalParameters.build(),
@@ -366,7 +339,7 @@
_$failedField = 'initializers';
initializers.build();
} catch (e) {
- throw new BuiltValueNestedFieldError(
+ throw BuiltValueNestedFieldError(
r'Constructor',
_$failedField,
e.toString(),
diff --git a/pkgs/code_builder/lib/src/specs/directive.g.dart b/pkgs/code_builder/lib/src/specs/directive.g.dart
index 0cc014a..f47d0c4 100644
--- a/pkgs/code_builder/lib/src/specs/directive.g.dart
+++ b/pkgs/code_builder/lib/src/specs/directive.g.dart
@@ -21,7 +21,7 @@
final bool deferred;
factory _$Directive([void Function(DirectiveBuilder)? updates]) =>
- (new DirectiveBuilder()..update(updates)).build() as _$Directive;
+ (DirectiveBuilder()..update(updates)).build() as _$Directive;
_$Directive._({
this.as,
@@ -30,20 +30,13 @@
required this.show,
required this.hide,
required this.deferred,
- }) : super._() {
- BuiltValueNullFieldError.checkNotNull(url, r'Directive', 'url');
- BuiltValueNullFieldError.checkNotNull(type, r'Directive', 'type');
- BuiltValueNullFieldError.checkNotNull(show, r'Directive', 'show');
- BuiltValueNullFieldError.checkNotNull(hide, r'Directive', 'hide');
- BuiltValueNullFieldError.checkNotNull(deferred, r'Directive', 'deferred');
- }
-
+ }) : super._();
@override
Directive rebuild(void Function(DirectiveBuilder) updates) =>
(toBuilder()..update(updates)).build();
@override
- _$DirectiveBuilder toBuilder() => new _$DirectiveBuilder()..replace(this);
+ _$DirectiveBuilder toBuilder() => _$DirectiveBuilder()..replace(this);
@override
bool operator ==(Object other) {
@@ -176,7 +169,6 @@
@override
void replace(Directive other) {
- ArgumentError.checkNotNull(other, 'other');
_$v = other as _$Directive;
}
@@ -191,7 +183,7 @@
_$Directive _build() {
final _$result =
_$v ??
- new _$Directive._(
+ _$Directive._(
as: as,
url: BuiltValueNullFieldError.checkNotNull(url, r'Directive', 'url'),
type: BuiltValueNullFieldError.checkNotNull(
diff --git a/pkgs/code_builder/lib/src/specs/enum.g.dart b/pkgs/code_builder/lib/src/specs/enum.g.dart
index 8c2e358..9969123 100644
--- a/pkgs/code_builder/lib/src/specs/enum.g.dart
+++ b/pkgs/code_builder/lib/src/specs/enum.g.dart
@@ -29,7 +29,7 @@
final BuiltList<Field> fields;
factory _$Enum([void Function(EnumBuilder)? updates]) =>
- (new EnumBuilder()..update(updates)).build() as _$Enum;
+ (EnumBuilder()..update(updates)).build() as _$Enum;
_$Enum._({
required this.name,
@@ -42,29 +42,13 @@
required this.constructors,
required this.methods,
required this.fields,
- }) : super._() {
- BuiltValueNullFieldError.checkNotNull(name, r'Enum', 'name');
- BuiltValueNullFieldError.checkNotNull(values, r'Enum', 'values');
- BuiltValueNullFieldError.checkNotNull(annotations, r'Enum', 'annotations');
- BuiltValueNullFieldError.checkNotNull(docs, r'Enum', 'docs');
- BuiltValueNullFieldError.checkNotNull(implements, r'Enum', 'implements');
- BuiltValueNullFieldError.checkNotNull(mixins, r'Enum', 'mixins');
- BuiltValueNullFieldError.checkNotNull(types, r'Enum', 'types');
- BuiltValueNullFieldError.checkNotNull(
- constructors,
- r'Enum',
- 'constructors',
- );
- BuiltValueNullFieldError.checkNotNull(methods, r'Enum', 'methods');
- BuiltValueNullFieldError.checkNotNull(fields, r'Enum', 'fields');
- }
-
+ }) : super._();
@override
Enum rebuild(void Function(EnumBuilder) updates) =>
(toBuilder()..update(updates)).build();
@override
- _$EnumBuilder toBuilder() => new _$EnumBuilder()..replace(this);
+ _$EnumBuilder toBuilder() => _$EnumBuilder()..replace(this);
@override
bool operator ==(Object other) {
@@ -261,7 +245,6 @@
@override
void replace(Enum other) {
- ArgumentError.checkNotNull(other, 'other');
_$v = other as _$Enum;
}
@@ -278,7 +261,7 @@
try {
_$result =
_$v ??
- new _$Enum._(
+ _$Enum._(
name: BuiltValueNullFieldError.checkNotNull(name, r'Enum', 'name'),
values: values.build(),
annotations: annotations.build(),
@@ -312,11 +295,7 @@
_$failedField = 'fields';
fields.build();
} catch (e) {
- throw new BuiltValueNestedFieldError(
- r'Enum',
- _$failedField,
- e.toString(),
- );
+ throw BuiltValueNestedFieldError(r'Enum', _$failedField, e.toString());
}
rethrow;
}
@@ -342,7 +321,7 @@
final BuiltMap<String, Expression> namedArguments;
factory _$EnumValue([void Function(EnumValueBuilder)? updates]) =>
- (new EnumValueBuilder()..update(updates)).build() as _$EnumValue;
+ (EnumValueBuilder()..update(updates)).build() as _$EnumValue;
_$EnumValue._({
required this.name,
@@ -352,29 +331,13 @@
required this.types,
required this.arguments,
required this.namedArguments,
- }) : super._() {
- BuiltValueNullFieldError.checkNotNull(name, r'EnumValue', 'name');
- BuiltValueNullFieldError.checkNotNull(
- annotations,
- r'EnumValue',
- 'annotations',
- );
- BuiltValueNullFieldError.checkNotNull(docs, r'EnumValue', 'docs');
- BuiltValueNullFieldError.checkNotNull(types, r'EnumValue', 'types');
- BuiltValueNullFieldError.checkNotNull(arguments, r'EnumValue', 'arguments');
- BuiltValueNullFieldError.checkNotNull(
- namedArguments,
- r'EnumValue',
- 'namedArguments',
- );
- }
-
+ }) : super._();
@override
EnumValue rebuild(void Function(EnumValueBuilder) updates) =>
(toBuilder()..update(updates)).build();
@override
- _$EnumValueBuilder toBuilder() => new _$EnumValueBuilder()..replace(this);
+ _$EnumValueBuilder toBuilder() => _$EnumValueBuilder()..replace(this);
@override
bool operator ==(Object other) {
@@ -523,7 +486,6 @@
@override
void replace(EnumValue other) {
- ArgumentError.checkNotNull(other, 'other');
_$v = other as _$EnumValue;
}
@@ -540,7 +502,7 @@
try {
_$result =
_$v ??
- new _$EnumValue._(
+ _$EnumValue._(
name: BuiltValueNullFieldError.checkNotNull(
name,
r'EnumValue',
@@ -568,7 +530,7 @@
_$failedField = 'namedArguments';
namedArguments.build();
} catch (e) {
- throw new BuiltValueNestedFieldError(
+ throw BuiltValueNestedFieldError(
r'EnumValue',
_$failedField,
e.toString(),
diff --git a/pkgs/code_builder/lib/src/specs/extension.g.dart b/pkgs/code_builder/lib/src/specs/extension.g.dart
index 5782c3d..091d92e 100644
--- a/pkgs/code_builder/lib/src/specs/extension.g.dart
+++ b/pkgs/code_builder/lib/src/specs/extension.g.dart
@@ -23,7 +23,7 @@
final String? name;
factory _$Extension([void Function(ExtensionBuilder)? updates]) =>
- (new ExtensionBuilder()..update(updates)).build() as _$Extension;
+ (ExtensionBuilder()..update(updates)).build() as _$Extension;
_$Extension._({
required this.annotations,
@@ -33,24 +33,13 @@
required this.methods,
required this.fields,
this.name,
- }) : super._() {
- BuiltValueNullFieldError.checkNotNull(
- annotations,
- r'Extension',
- 'annotations',
- );
- BuiltValueNullFieldError.checkNotNull(docs, r'Extension', 'docs');
- BuiltValueNullFieldError.checkNotNull(types, r'Extension', 'types');
- BuiltValueNullFieldError.checkNotNull(methods, r'Extension', 'methods');
- BuiltValueNullFieldError.checkNotNull(fields, r'Extension', 'fields');
- }
-
+ }) : super._();
@override
Extension rebuild(void Function(ExtensionBuilder) updates) =>
(toBuilder()..update(updates)).build();
@override
- _$ExtensionBuilder toBuilder() => new _$ExtensionBuilder()..replace(this);
+ _$ExtensionBuilder toBuilder() => _$ExtensionBuilder()..replace(this);
@override
bool operator ==(Object other) {
@@ -199,7 +188,6 @@
@override
void replace(Extension other) {
- ArgumentError.checkNotNull(other, 'other');
_$v = other as _$Extension;
}
@@ -216,7 +204,7 @@
try {
_$result =
_$v ??
- new _$Extension._(
+ _$Extension._(
annotations: annotations.build(),
docs: docs.build(),
on: on,
@@ -240,7 +228,7 @@
_$failedField = 'fields';
fields.build();
} catch (e) {
- throw new BuiltValueNestedFieldError(
+ throw BuiltValueNestedFieldError(
r'Extension',
_$failedField,
e.toString(),
diff --git a/pkgs/code_builder/lib/src/specs/extension_type.g.dart b/pkgs/code_builder/lib/src/specs/extension_type.g.dart
index 17443ce..1835f34 100644
--- a/pkgs/code_builder/lib/src/specs/extension_type.g.dart
+++ b/pkgs/code_builder/lib/src/specs/extension_type.g.dart
@@ -31,7 +31,7 @@
final BuiltList<Method> methods;
factory _$ExtensionType([void Function(ExtensionTypeBuilder)? updates]) =>
- (new ExtensionTypeBuilder()..update(updates)).build() as _$ExtensionType;
+ (ExtensionTypeBuilder()..update(updates)).build() as _$ExtensionType;
_$ExtensionType._({
required this.annotations,
@@ -45,51 +45,13 @@
required this.constructors,
required this.fields,
required this.methods,
- }) : super._() {
- BuiltValueNullFieldError.checkNotNull(
- annotations,
- r'ExtensionType',
- 'annotations',
- );
- BuiltValueNullFieldError.checkNotNull(docs, r'ExtensionType', 'docs');
- BuiltValueNullFieldError.checkNotNull(
- constant,
- r'ExtensionType',
- 'constant',
- );
- BuiltValueNullFieldError.checkNotNull(name, r'ExtensionType', 'name');
- BuiltValueNullFieldError.checkNotNull(types, r'ExtensionType', 'types');
- BuiltValueNullFieldError.checkNotNull(
- primaryConstructorName,
- r'ExtensionType',
- 'primaryConstructorName',
- );
- BuiltValueNullFieldError.checkNotNull(
- representationDeclaration,
- r'ExtensionType',
- 'representationDeclaration',
- );
- BuiltValueNullFieldError.checkNotNull(
- implements,
- r'ExtensionType',
- 'implements',
- );
- BuiltValueNullFieldError.checkNotNull(
- constructors,
- r'ExtensionType',
- 'constructors',
- );
- BuiltValueNullFieldError.checkNotNull(fields, r'ExtensionType', 'fields');
- BuiltValueNullFieldError.checkNotNull(methods, r'ExtensionType', 'methods');
- }
-
+ }) : super._();
@override
ExtensionType rebuild(void Function(ExtensionTypeBuilder) updates) =>
(toBuilder()..update(updates)).build();
@override
- _$ExtensionTypeBuilder toBuilder() =>
- new _$ExtensionTypeBuilder()..replace(this);
+ _$ExtensionTypeBuilder toBuilder() => _$ExtensionTypeBuilder()..replace(this);
@override
bool operator ==(Object other) {
@@ -304,7 +266,6 @@
@override
void replace(ExtensionType other) {
- ArgumentError.checkNotNull(other, 'other');
_$v = other as _$ExtensionType;
}
@@ -321,7 +282,7 @@
try {
_$result =
_$v ??
- new _$ExtensionType._(
+ _$ExtensionType._(
annotations: annotations.build(),
docs: docs.build(),
constant: BuiltValueNullFieldError.checkNotNull(
@@ -370,7 +331,7 @@
_$failedField = 'methods';
methods.build();
} catch (e) {
- throw new BuiltValueNestedFieldError(
+ throw BuiltValueNestedFieldError(
r'ExtensionType',
_$failedField,
e.toString(),
@@ -396,7 +357,7 @@
factory _$RepresentationDeclaration([
void Function(RepresentationDeclarationBuilder)? updates,
]) =>
- (new RepresentationDeclarationBuilder()..update(updates)).build()
+ (RepresentationDeclarationBuilder()..update(updates)).build()
as _$RepresentationDeclaration;
_$RepresentationDeclaration._({
@@ -404,29 +365,7 @@
required this.docs,
required this.declaredRepresentationType,
required this.name,
- }) : super._() {
- BuiltValueNullFieldError.checkNotNull(
- annotations,
- r'RepresentationDeclaration',
- 'annotations',
- );
- BuiltValueNullFieldError.checkNotNull(
- docs,
- r'RepresentationDeclaration',
- 'docs',
- );
- BuiltValueNullFieldError.checkNotNull(
- declaredRepresentationType,
- r'RepresentationDeclaration',
- 'declaredRepresentationType',
- );
- BuiltValueNullFieldError.checkNotNull(
- name,
- r'RepresentationDeclaration',
- 'name',
- );
- }
-
+ }) : super._();
@override
RepresentationDeclaration rebuild(
void Function(RepresentationDeclarationBuilder) updates,
@@ -434,7 +373,7 @@
@override
_$RepresentationDeclarationBuilder toBuilder() =>
- new _$RepresentationDeclarationBuilder()..replace(this);
+ _$RepresentationDeclarationBuilder()..replace(this);
@override
bool operator ==(Object other) {
@@ -536,7 +475,6 @@
@override
void replace(RepresentationDeclaration other) {
- ArgumentError.checkNotNull(other, 'other');
_$v = other as _$RepresentationDeclaration;
}
@@ -553,7 +491,7 @@
try {
_$result =
_$v ??
- new _$RepresentationDeclaration._(
+ _$RepresentationDeclaration._(
annotations: annotations.build(),
docs: docs.build(),
declaredRepresentationType: BuiltValueNullFieldError.checkNotNull(
@@ -575,7 +513,7 @@
_$failedField = 'docs';
docs.build();
} catch (e) {
- throw new BuiltValueNestedFieldError(
+ throw BuiltValueNestedFieldError(
r'RepresentationDeclaration',
_$failedField,
e.toString(),
diff --git a/pkgs/code_builder/lib/src/specs/field.g.dart b/pkgs/code_builder/lib/src/specs/field.g.dart
index 15913b8..674f4f0 100644
--- a/pkgs/code_builder/lib/src/specs/field.g.dart
+++ b/pkgs/code_builder/lib/src/specs/field.g.dart
@@ -27,7 +27,7 @@
final FieldModifier modifier;
factory _$Field([void Function(FieldBuilder)? updates]) =>
- (new FieldBuilder()..update(updates)).build() as _$Field;
+ (FieldBuilder()..update(updates)).build() as _$Field;
_$Field._({
required this.annotations,
@@ -39,22 +39,13 @@
required this.name,
this.type,
required this.modifier,
- }) : super._() {
- BuiltValueNullFieldError.checkNotNull(annotations, r'Field', 'annotations');
- BuiltValueNullFieldError.checkNotNull(docs, r'Field', 'docs');
- BuiltValueNullFieldError.checkNotNull(static, r'Field', 'static');
- BuiltValueNullFieldError.checkNotNull(late, r'Field', 'late');
- BuiltValueNullFieldError.checkNotNull(external, r'Field', 'external');
- BuiltValueNullFieldError.checkNotNull(name, r'Field', 'name');
- BuiltValueNullFieldError.checkNotNull(modifier, r'Field', 'modifier');
- }
-
+ }) : super._();
@override
Field rebuild(void Function(FieldBuilder) updates) =>
(toBuilder()..update(updates)).build();
@override
- _$FieldBuilder toBuilder() => new _$FieldBuilder()..replace(this);
+ _$FieldBuilder toBuilder() => _$FieldBuilder()..replace(this);
@override
bool operator ==(Object other) {
@@ -235,7 +226,6 @@
@override
void replace(Field other) {
- ArgumentError.checkNotNull(other, 'other');
_$v = other as _$Field;
}
@@ -252,7 +242,7 @@
try {
_$result =
_$v ??
- new _$Field._(
+ _$Field._(
annotations: annotations.build(),
docs: docs.build(),
assignment: assignment,
@@ -283,11 +273,7 @@
_$failedField = 'docs';
docs.build();
} catch (e) {
- throw new BuiltValueNestedFieldError(
- r'Field',
- _$failedField,
- e.toString(),
- );
+ throw BuiltValueNestedFieldError(r'Field', _$failedField, e.toString());
}
rethrow;
}
diff --git a/pkgs/code_builder/lib/src/specs/library.g.dart b/pkgs/code_builder/lib/src/specs/library.g.dart
index 36e9463..aee8fa6 100644
--- a/pkgs/code_builder/lib/src/specs/library.g.dart
+++ b/pkgs/code_builder/lib/src/specs/library.g.dart
@@ -25,7 +25,7 @@
final String? name;
factory _$Library([void Function(LibraryBuilder)? updates]) =>
- (new LibraryBuilder()..update(updates)).build() as _$Library;
+ (LibraryBuilder()..update(updates)).build() as _$Library;
_$Library._({
required this.annotations,
@@ -36,29 +36,13 @@
this.generatedByComment,
required this.ignoreForFile,
this.name,
- }) : super._() {
- BuiltValueNullFieldError.checkNotNull(
- annotations,
- r'Library',
- 'annotations',
- );
- BuiltValueNullFieldError.checkNotNull(docs, r'Library', 'docs');
- BuiltValueNullFieldError.checkNotNull(directives, r'Library', 'directives');
- BuiltValueNullFieldError.checkNotNull(body, r'Library', 'body');
- BuiltValueNullFieldError.checkNotNull(comments, r'Library', 'comments');
- BuiltValueNullFieldError.checkNotNull(
- ignoreForFile,
- r'Library',
- 'ignoreForFile',
- );
- }
-
+ }) : super._();
@override
Library rebuild(void Function(LibraryBuilder) updates) =>
(toBuilder()..update(updates)).build();
@override
- _$LibraryBuilder toBuilder() => new _$LibraryBuilder()..replace(this);
+ _$LibraryBuilder toBuilder() => _$LibraryBuilder()..replace(this);
@override
bool operator ==(Object other) {
@@ -223,7 +207,6 @@
@override
void replace(Library other) {
- ArgumentError.checkNotNull(other, 'other');
_$v = other as _$Library;
}
@@ -240,7 +223,7 @@
try {
_$result =
_$v ??
- new _$Library._(
+ _$Library._(
annotations: annotations.build(),
docs: docs.build(),
directives: directives.build(),
@@ -267,7 +250,7 @@
_$failedField = 'ignoreForFile';
ignoreForFile.build();
} catch (e) {
- throw new BuiltValueNestedFieldError(
+ throw BuiltValueNestedFieldError(
r'Library',
_$failedField,
e.toString(),
diff --git a/pkgs/code_builder/lib/src/specs/method.g.dart b/pkgs/code_builder/lib/src/specs/method.g.dart
index ecdf902..7df08cb 100644
--- a/pkgs/code_builder/lib/src/specs/method.g.dart
+++ b/pkgs/code_builder/lib/src/specs/method.g.dart
@@ -35,7 +35,7 @@
final Reference? returns;
factory _$Method([void Function(MethodBuilder)? updates]) =>
- (new MethodBuilder()..update(updates)).build() as _$Method;
+ (MethodBuilder()..update(updates)).build() as _$Method;
_$Method._({
required this.annotations,
@@ -51,34 +51,13 @@
this.type,
this.modifier,
this.returns,
- }) : super._() {
- BuiltValueNullFieldError.checkNotNull(
- annotations,
- r'Method',
- 'annotations',
- );
- BuiltValueNullFieldError.checkNotNull(docs, r'Method', 'docs');
- BuiltValueNullFieldError.checkNotNull(types, r'Method', 'types');
- BuiltValueNullFieldError.checkNotNull(
- optionalParameters,
- r'Method',
- 'optionalParameters',
- );
- BuiltValueNullFieldError.checkNotNull(
- requiredParameters,
- r'Method',
- 'requiredParameters',
- );
- BuiltValueNullFieldError.checkNotNull(external, r'Method', 'external');
- BuiltValueNullFieldError.checkNotNull(static, r'Method', 'static');
- }
-
+ }) : super._();
@override
Method rebuild(void Function(MethodBuilder) updates) =>
(toBuilder()..update(updates)).build();
@override
- _$MethodBuilder toBuilder() => new _$MethodBuilder()..replace(this);
+ _$MethodBuilder toBuilder() => _$MethodBuilder()..replace(this);
@override
bool operator ==(Object other) {
@@ -323,7 +302,6 @@
@override
void replace(Method other) {
- ArgumentError.checkNotNull(other, 'other');
_$v = other as _$Method;
}
@@ -340,7 +318,7 @@
try {
_$result =
_$v ??
- new _$Method._(
+ _$Method._(
annotations: annotations.build(),
docs: docs.build(),
types: types.build(),
@@ -377,7 +355,7 @@
_$failedField = 'requiredParameters';
requiredParameters.build();
} catch (e) {
- throw new BuiltValueNestedFieldError(
+ throw BuiltValueNestedFieldError(
r'Method',
_$failedField,
e.toString(),
@@ -415,7 +393,7 @@
final bool covariant;
factory _$Parameter([void Function(ParameterBuilder)? updates]) =>
- (new ParameterBuilder()..update(updates)).build() as _$Parameter;
+ (ParameterBuilder()..update(updates)).build() as _$Parameter;
_$Parameter._({
this.defaultTo,
@@ -429,28 +407,13 @@
this.type,
required this.required,
required this.covariant,
- }) : super._() {
- BuiltValueNullFieldError.checkNotNull(name, r'Parameter', 'name');
- BuiltValueNullFieldError.checkNotNull(named, r'Parameter', 'named');
- BuiltValueNullFieldError.checkNotNull(toThis, r'Parameter', 'toThis');
- BuiltValueNullFieldError.checkNotNull(toSuper, r'Parameter', 'toSuper');
- BuiltValueNullFieldError.checkNotNull(
- annotations,
- r'Parameter',
- 'annotations',
- );
- BuiltValueNullFieldError.checkNotNull(docs, r'Parameter', 'docs');
- BuiltValueNullFieldError.checkNotNull(types, r'Parameter', 'types');
- BuiltValueNullFieldError.checkNotNull(required, r'Parameter', 'required');
- BuiltValueNullFieldError.checkNotNull(covariant, r'Parameter', 'covariant');
- }
-
+ }) : super._();
@override
Parameter rebuild(void Function(ParameterBuilder) updates) =>
(toBuilder()..update(updates)).build();
@override
- _$ParameterBuilder toBuilder() => new _$ParameterBuilder()..replace(this);
+ _$ParameterBuilder toBuilder() => _$ParameterBuilder()..replace(this);
@override
bool operator ==(Object other) {
@@ -663,7 +626,6 @@
@override
void replace(Parameter other) {
- ArgumentError.checkNotNull(other, 'other');
_$v = other as _$Parameter;
}
@@ -680,7 +642,7 @@
try {
_$result =
_$v ??
- new _$Parameter._(
+ _$Parameter._(
defaultTo: defaultTo,
name: BuiltValueNullFieldError.checkNotNull(
name,
@@ -727,7 +689,7 @@
_$failedField = 'types';
types.build();
} catch (e) {
- throw new BuiltValueNestedFieldError(
+ throw BuiltValueNestedFieldError(
r'Parameter',
_$failedField,
e.toString(),
diff --git a/pkgs/code_builder/lib/src/specs/mixin.g.dart b/pkgs/code_builder/lib/src/specs/mixin.g.dart
index e84a379..207a7b9 100644
--- a/pkgs/code_builder/lib/src/specs/mixin.g.dart
+++ b/pkgs/code_builder/lib/src/specs/mixin.g.dart
@@ -27,7 +27,7 @@
final String name;
factory _$Mixin([void Function(MixinBuilder)? updates]) =>
- (new MixinBuilder()..update(updates)).build() as _$Mixin;
+ (MixinBuilder()..update(updates)).build() as _$Mixin;
_$Mixin._({
required this.base,
@@ -39,23 +39,13 @@
required this.methods,
required this.fields,
required this.name,
- }) : super._() {
- BuiltValueNullFieldError.checkNotNull(base, r'Mixin', 'base');
- BuiltValueNullFieldError.checkNotNull(annotations, r'Mixin', 'annotations');
- BuiltValueNullFieldError.checkNotNull(docs, r'Mixin', 'docs');
- BuiltValueNullFieldError.checkNotNull(implements, r'Mixin', 'implements');
- BuiltValueNullFieldError.checkNotNull(types, r'Mixin', 'types');
- BuiltValueNullFieldError.checkNotNull(methods, r'Mixin', 'methods');
- BuiltValueNullFieldError.checkNotNull(fields, r'Mixin', 'fields');
- BuiltValueNullFieldError.checkNotNull(name, r'Mixin', 'name');
- }
-
+ }) : super._();
@override
Mixin rebuild(void Function(MixinBuilder) updates) =>
(toBuilder()..update(updates)).build();
@override
- _$MixinBuilder toBuilder() => new _$MixinBuilder()..replace(this);
+ _$MixinBuilder toBuilder() => _$MixinBuilder()..replace(this);
@override
bool operator ==(Object other) {
@@ -236,7 +226,6 @@
@override
void replace(Mixin other) {
- ArgumentError.checkNotNull(other, 'other');
_$v = other as _$Mixin;
}
@@ -253,7 +242,7 @@
try {
_$result =
_$v ??
- new _$Mixin._(
+ _$Mixin._(
base: BuiltValueNullFieldError.checkNotNull(base, r'Mixin', 'base'),
annotations: annotations.build(),
docs: docs.build(),
@@ -281,11 +270,7 @@
_$failedField = 'fields';
fields.build();
} catch (e) {
- throw new BuiltValueNestedFieldError(
- r'Mixin',
- _$failedField,
- e.toString(),
- );
+ throw BuiltValueNestedFieldError(r'Mixin', _$failedField, e.toString());
}
rethrow;
}
diff --git a/pkgs/code_builder/lib/src/specs/type_function.g.dart b/pkgs/code_builder/lib/src/specs/type_function.g.dart
index d817c40..96c4d3e 100644
--- a/pkgs/code_builder/lib/src/specs/type_function.g.dart
+++ b/pkgs/code_builder/lib/src/specs/type_function.g.dart
@@ -23,7 +23,7 @@
final bool? isNullable;
factory _$FunctionType([void Function(FunctionTypeBuilder)? updates]) =>
- (new FunctionTypeBuilder()..update(updates)).build() as _$FunctionType;
+ (FunctionTypeBuilder()..update(updates)).build() as _$FunctionType;
_$FunctionType._({
this.returnType,
@@ -33,37 +33,13 @@
required this.namedParameters,
required this.namedRequiredParameters,
this.isNullable,
- }) : super._() {
- BuiltValueNullFieldError.checkNotNull(types, r'FunctionType', 'types');
- BuiltValueNullFieldError.checkNotNull(
- requiredParameters,
- r'FunctionType',
- 'requiredParameters',
- );
- BuiltValueNullFieldError.checkNotNull(
- optionalParameters,
- r'FunctionType',
- 'optionalParameters',
- );
- BuiltValueNullFieldError.checkNotNull(
- namedParameters,
- r'FunctionType',
- 'namedParameters',
- );
- BuiltValueNullFieldError.checkNotNull(
- namedRequiredParameters,
- r'FunctionType',
- 'namedRequiredParameters',
- );
- }
-
+ }) : super._();
@override
FunctionType rebuild(void Function(FunctionTypeBuilder) updates) =>
(toBuilder()..update(updates)).build();
@override
- _$FunctionTypeBuilder toBuilder() =>
- new _$FunctionTypeBuilder()..replace(this);
+ _$FunctionTypeBuilder toBuilder() => _$FunctionTypeBuilder()..replace(this);
@override
bool operator ==(Object other) {
@@ -214,7 +190,6 @@
@override
void replace(FunctionType other) {
- ArgumentError.checkNotNull(other, 'other');
_$v = other as _$FunctionType;
}
@@ -231,7 +206,7 @@
try {
_$result =
_$v ??
- new _$FunctionType._(
+ _$FunctionType._(
returnType: returnType,
types: types.build(),
requiredParameters: requiredParameters.build(),
@@ -254,7 +229,7 @@
_$failedField = 'namedRequiredParameters';
namedRequiredParameters.build();
} catch (e) {
- throw new BuiltValueNestedFieldError(
+ throw BuiltValueNestedFieldError(
r'FunctionType',
_$failedField,
e.toString(),
diff --git a/pkgs/code_builder/lib/src/specs/type_record.g.dart b/pkgs/code_builder/lib/src/specs/type_record.g.dart
index b361086..848ad81 100644
--- a/pkgs/code_builder/lib/src/specs/type_record.g.dart
+++ b/pkgs/code_builder/lib/src/specs/type_record.g.dart
@@ -15,31 +15,19 @@
final bool? isNullable;
factory _$RecordType([void Function(RecordTypeBuilder)? updates]) =>
- (new RecordTypeBuilder()..update(updates)).build() as _$RecordType;
+ (RecordTypeBuilder()..update(updates)).build() as _$RecordType;
_$RecordType._({
required this.positionalFieldTypes,
required this.namedFieldTypes,
this.isNullable,
- }) : super._() {
- BuiltValueNullFieldError.checkNotNull(
- positionalFieldTypes,
- r'RecordType',
- 'positionalFieldTypes',
- );
- BuiltValueNullFieldError.checkNotNull(
- namedFieldTypes,
- r'RecordType',
- 'namedFieldTypes',
- );
- }
-
+ }) : super._();
@override
RecordType rebuild(void Function(RecordTypeBuilder) updates) =>
(toBuilder()..update(updates)).build();
@override
- _$RecordTypeBuilder toBuilder() => new _$RecordTypeBuilder()..replace(this);
+ _$RecordTypeBuilder toBuilder() => _$RecordTypeBuilder()..replace(this);
@override
bool operator ==(Object other) {
@@ -124,7 +112,6 @@
@override
void replace(RecordType other) {
- ArgumentError.checkNotNull(other, 'other');
_$v = other as _$RecordType;
}
@@ -141,7 +128,7 @@
try {
_$result =
_$v ??
- new _$RecordType._(
+ _$RecordType._(
positionalFieldTypes: positionalFieldTypes.build(),
namedFieldTypes: namedFieldTypes.build(),
isNullable: isNullable,
@@ -154,7 +141,7 @@
_$failedField = 'namedFieldTypes';
namedFieldTypes.build();
} catch (e) {
- throw new BuiltValueNestedFieldError(
+ throw BuiltValueNestedFieldError(
r'RecordType',
_$failedField,
e.toString(),
diff --git a/pkgs/code_builder/lib/src/specs/type_reference.g.dart b/pkgs/code_builder/lib/src/specs/type_reference.g.dart
index d6b1677..11aadb9 100644
--- a/pkgs/code_builder/lib/src/specs/type_reference.g.dart
+++ b/pkgs/code_builder/lib/src/specs/type_reference.g.dart
@@ -19,7 +19,7 @@
final bool? isNullable;
factory _$TypeReference([void Function(TypeReferenceBuilder)? updates]) =>
- (new TypeReferenceBuilder()..update(updates)).build() as _$TypeReference;
+ (TypeReferenceBuilder()..update(updates)).build() as _$TypeReference;
_$TypeReference._({
required this.symbol,
@@ -27,18 +27,13 @@
this.bound,
required this.types,
this.isNullable,
- }) : super._() {
- BuiltValueNullFieldError.checkNotNull(symbol, r'TypeReference', 'symbol');
- BuiltValueNullFieldError.checkNotNull(types, r'TypeReference', 'types');
- }
-
+ }) : super._();
@override
TypeReference rebuild(void Function(TypeReferenceBuilder) updates) =>
(toBuilder()..update(updates)).build();
@override
- _$TypeReferenceBuilder toBuilder() =>
- new _$TypeReferenceBuilder()..replace(this);
+ _$TypeReferenceBuilder toBuilder() => _$TypeReferenceBuilder()..replace(this);
@override
bool operator ==(Object other) {
@@ -155,7 +150,6 @@
@override
void replace(TypeReference other) {
- ArgumentError.checkNotNull(other, 'other');
_$v = other as _$TypeReference;
}
@@ -172,7 +166,7 @@
try {
_$result =
_$v ??
- new _$TypeReference._(
+ _$TypeReference._(
symbol: BuiltValueNullFieldError.checkNotNull(
symbol,
r'TypeReference',
@@ -189,7 +183,7 @@
_$failedField = 'types';
types.build();
} catch (e) {
- throw new BuiltValueNestedFieldError(
+ throw BuiltValueNestedFieldError(
r'TypeReference',
_$failedField,
e.toString(),
diff --git a/pkgs/code_builder/lib/src/specs/typedef.g.dart b/pkgs/code_builder/lib/src/specs/typedef.g.dart
index e1d1f55..92c5e1e 100644
--- a/pkgs/code_builder/lib/src/specs/typedef.g.dart
+++ b/pkgs/code_builder/lib/src/specs/typedef.g.dart
@@ -19,7 +19,7 @@
final BuiltList<Reference> types;
factory _$TypeDef([void Function(TypeDefBuilder)? updates]) =>
- (new TypeDefBuilder()..update(updates)).build() as _$TypeDef;
+ (TypeDefBuilder()..update(updates)).build() as _$TypeDef;
_$TypeDef._({
required this.name,
@@ -27,24 +27,13 @@
required this.annotations,
required this.docs,
required this.types,
- }) : super._() {
- BuiltValueNullFieldError.checkNotNull(name, r'TypeDef', 'name');
- BuiltValueNullFieldError.checkNotNull(definition, r'TypeDef', 'definition');
- BuiltValueNullFieldError.checkNotNull(
- annotations,
- r'TypeDef',
- 'annotations',
- );
- BuiltValueNullFieldError.checkNotNull(docs, r'TypeDef', 'docs');
- BuiltValueNullFieldError.checkNotNull(types, r'TypeDef', 'types');
- }
-
+ }) : super._();
@override
TypeDef rebuild(void Function(TypeDefBuilder) updates) =>
(toBuilder()..update(updates)).build();
@override
- _$TypeDefBuilder toBuilder() => new _$TypeDefBuilder()..replace(this);
+ _$TypeDefBuilder toBuilder() => _$TypeDefBuilder()..replace(this);
@override
bool operator ==(Object other) {
@@ -161,7 +150,6 @@
@override
void replace(TypeDef other) {
- ArgumentError.checkNotNull(other, 'other');
_$v = other as _$TypeDef;
}
@@ -178,7 +166,7 @@
try {
_$result =
_$v ??
- new _$TypeDef._(
+ _$TypeDef._(
name: BuiltValueNullFieldError.checkNotNull(
name,
r'TypeDef',
@@ -203,7 +191,7 @@
_$failedField = 'types';
types.build();
} catch (e) {
- throw new BuiltValueNestedFieldError(
+ throw BuiltValueNestedFieldError(
r'TypeDef',
_$failedField,
e.toString(),
diff --git a/pkgs/code_builder/pubspec.yaml b/pkgs/code_builder/pubspec.yaml
index 515b2e6..86fe4f5 100644
--- a/pkgs/code_builder/pubspec.yaml
+++ b/pkgs/code_builder/pubspec.yaml
@@ -15,10 +15,8 @@
meta: ^1.16.0
dev_dependencies:
- build: ^4.0.0
build_runner: ^2.7.2
built_value_generator: ^8.11.2
dart_flutter_team_lints: ^3.0.0
dart_style: ^3.1.2
- source_gen: ^4.0.1
test: ^1.26.3