Skip to content

Commit

Permalink
run dart fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Nika Hassani committed Mar 29, 2024
1 parent 908642f commit a3e785a
Show file tree
Hide file tree
Showing 65 changed files with 195 additions and 199 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -116,10 +116,10 @@ class TemporalDate implements Comparable<TemporalDate> {
// Duration.toString returns string of form -9:30:00.000000 / 9:30:00.000000
// But we need -09:30 / +09:30
if (_offset != null) {
if (_offset!.inSeconds == 0) {
if (_offset.inSeconds == 0) {
buffer.write('Z');
} else {
buffer.write(Temporal.durationToOffset(_offset!));
buffer.write(Temporal.durationToOffset(_offset));
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -164,10 +164,10 @@ class TemporalDateTime implements Comparable<TemporalDateTime> {
buffer.write('.${totalMicroseconds.toString().padLeft(9, '0')}');

if (_offset != null) {
if (_offset!.inSeconds == 0) {
if (_offset.inSeconds == 0) {
buffer.write('Z');
} else {
buffer.write(Temporal.durationToOffset(_offset!));
buffer.write(Temporal.durationToOffset(_offset));
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -166,10 +166,10 @@ class TemporalTime implements Comparable<TemporalTime> {
}

if (_offset != null) {
if (_offset!.inSeconds == 0) {
if (_offset.inSeconds == 0) {
buffer.write('Z');
} else {
buffer.write(Temporal.durationToOffset(_offset!));
buffer.write(Temporal.durationToOffset(_offset));
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,13 +98,13 @@ class BelongsToChildExplicit extends amplify_core.Model {
buffer.write("id=" + "$id" + ", ");
buffer.write("name=" + "$_name" + ", ");
buffer.write("belongsToParent=" +
(_belongsToParent != null ? _belongsToParent!.toString() : "null") +
(_belongsToParent != null ? _belongsToParent.toString() : "null") +
", ");
buffer.write("createdAt=" +
(_createdAt != null ? _createdAt!.format() : "null") +
(_createdAt != null ? _createdAt.format() : "null") +
", ");
buffer.write(
"updatedAt=" + (_updatedAt != null ? _updatedAt!.format() : "null"));
"updatedAt=" + (_updatedAt != null ? _updatedAt.format() : "null"));
buffer.write("}");

return buffer.toString();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,13 +98,13 @@ class BelongsToChildImplicit extends amplify_core.Model {
buffer.write("id=" + "$id" + ", ");
buffer.write("name=" + "$_name" + ", ");
buffer.write("belongsToParent=" +
(_belongsToParent != null ? _belongsToParent!.toString() : "null") +
(_belongsToParent != null ? _belongsToParent.toString() : "null") +
", ");
buffer.write("createdAt=" +
(_createdAt != null ? _createdAt!.format() : "null") +
(_createdAt != null ? _createdAt.format() : "null") +
", ");
buffer.write(
"updatedAt=" + (_updatedAt != null ? _updatedAt!.format() : "null"));
"updatedAt=" + (_updatedAt != null ? _updatedAt.format() : "null"));
buffer.write("}");

return buffer.toString();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -136,10 +136,10 @@ class BelongsToParent extends amplify_core.Model {
buffer.write("id=" + "$id" + ", ");
buffer.write("name=" + "$_name" + ", ");
buffer.write("createdAt=" +
(_createdAt != null ? _createdAt!.format() : "null") +
(_createdAt != null ? _createdAt.format() : "null") +
", ");
buffer.write("updatedAt=" +
(_updatedAt != null ? _updatedAt!.format() : "null") +
(_updatedAt != null ? _updatedAt.format() : "null") +
", ");
buffer.write("belongsToParentImplicitChildId=" +
"$_belongsToParentImplicitChildId" +
Expand Down
4 changes: 2 additions & 2 deletions packages/amplify_datastore/example/lib/models/Blog.dart
Original file line number Diff line number Diff line change
Expand Up @@ -107,10 +107,10 @@ class Blog extends amplify_core.Model {
buffer.write("id=" + "$id" + ", ");
buffer.write("name=" + "$_name" + ", ");
buffer.write("createdAt=" +
(_createdAt != null ? _createdAt!.format() : "null") +
(_createdAt != null ? _createdAt.format() : "null") +
", ");
buffer.write(
"updatedAt=" + (_updatedAt != null ? _updatedAt!.format() : "null"));
"updatedAt=" + (_updatedAt != null ? _updatedAt.format() : "null"));
buffer.write("}");

return buffer.toString();
Expand Down
6 changes: 3 additions & 3 deletions packages/amplify_datastore/example/lib/models/Comment.dart
Original file line number Diff line number Diff line change
Expand Up @@ -104,13 +104,13 @@ class Comment extends amplify_core.Model {

buffer.write("Comment {");
buffer.write("id=" + "$id" + ", ");
buffer.write("post=" + (_post != null ? _post!.toString() : "null") + ", ");
buffer.write("post=" + (_post != null ? _post.toString() : "null") + ", ");
buffer.write("content=" + "$_content" + ", ");
buffer.write("createdAt=" +
(_createdAt != null ? _createdAt!.format() : "null") +
(_createdAt != null ? _createdAt.format() : "null") +
", ");
buffer.write(
"updatedAt=" + (_updatedAt != null ? _updatedAt!.format() : "null"));
"updatedAt=" + (_updatedAt != null ? _updatedAt.format() : "null"));
buffer.write("}");

return buffer.toString();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,13 +120,13 @@ class CpkHasManyChildBidirectionalExplicit extends amplify_core.Model {
buffer.write("id=" + "$id" + ", ");
buffer.write("name=" + "$_name" + ", ");
buffer.write("hasManyParent=" +
(_hasManyParent != null ? _hasManyParent!.toString() : "null") +
(_hasManyParent != null ? _hasManyParent.toString() : "null") +
", ");
buffer.write("createdAt=" +
(_createdAt != null ? _createdAt!.format() : "null") +
(_createdAt != null ? _createdAt.format() : "null") +
", ");
buffer.write(
"updatedAt=" + (_updatedAt != null ? _updatedAt!.format() : "null"));
"updatedAt=" + (_updatedAt != null ? _updatedAt.format() : "null"));
buffer.write("}");

return buffer.toString();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,13 +120,13 @@ class CpkHasManyChildBidirectionalImplicit extends amplify_core.Model {
buffer.write("id=" + "$id" + ", ");
buffer.write("name=" + "$_name" + ", ");
buffer.write("hasManyParent=" +
(_hasManyParent != null ? _hasManyParent!.toString() : "null") +
(_hasManyParent != null ? _hasManyParent.toString() : "null") +
", ");
buffer.write("createdAt=" +
(_createdAt != null ? _createdAt!.format() : "null") +
(_createdAt != null ? _createdAt.format() : "null") +
", ");
buffer.write(
"updatedAt=" + (_updatedAt != null ? _updatedAt!.format() : "null"));
"updatedAt=" + (_updatedAt != null ? _updatedAt.format() : "null"));
buffer.write("}");

return buffer.toString();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -132,10 +132,10 @@ class CpkHasManyParentBidirectionalExplicit extends amplify_core.Model {
buffer.write("id=" + "$id" + ", ");
buffer.write("name=" + "$_name" + ", ");
buffer.write("createdAt=" +
(_createdAt != null ? _createdAt!.format() : "null") +
(_createdAt != null ? _createdAt.format() : "null") +
", ");
buffer.write(
"updatedAt=" + (_updatedAt != null ? _updatedAt!.format() : "null"));
"updatedAt=" + (_updatedAt != null ? _updatedAt.format() : "null"));
buffer.write("}");

return buffer.toString();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -132,10 +132,10 @@ class CpkHasManyParentBidirectionalImplicit extends amplify_core.Model {
buffer.write("id=" + "$id" + ", ");
buffer.write("name=" + "$_name" + ", ");
buffer.write("createdAt=" +
(_createdAt != null ? _createdAt!.format() : "null") +
(_createdAt != null ? _createdAt.format() : "null") +
", ");
buffer.write(
"updatedAt=" + (_updatedAt != null ? _updatedAt!.format() : "null"));
"updatedAt=" + (_updatedAt != null ? _updatedAt.format() : "null"));
buffer.write("}");

return buffer.toString();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -154,10 +154,10 @@ class CpkHasManyUnidirectionalChildExplicit extends amplify_core.Model {
buffer.write("hasManyParentID=" + "$_hasManyParentID" + ", ");
buffer.write("hasManyParentName=" + "$_hasManyParentName" + ", ");
buffer.write("createdAt=" +
(_createdAt != null ? _createdAt!.format() : "null") +
(_createdAt != null ? _createdAt.format() : "null") +
", ");
buffer.write(
"updatedAt=" + (_updatedAt != null ? _updatedAt!.format() : "null"));
"updatedAt=" + (_updatedAt != null ? _updatedAt.format() : "null"));
buffer.write("}");

return buffer.toString();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -140,10 +140,10 @@ class CpkHasManyUnidirectionalChildImplicit extends amplify_core.Model {
buffer.write("id=" + "$id" + ", ");
buffer.write("name=" + "$_name" + ", ");
buffer.write("createdAt=" +
(_createdAt != null ? _createdAt!.format() : "null") +
(_createdAt != null ? _createdAt.format() : "null") +
", ");
buffer.write("updatedAt=" +
(_updatedAt != null ? _updatedAt!.format() : "null") +
(_updatedAt != null ? _updatedAt.format() : "null") +
", ");
buffer.write("cpkHasManyUnidirectionalParentImplicitChildrenId=" +
"$_cpkHasManyUnidirectionalParentImplicitChildrenId" +
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -142,10 +142,10 @@ class CpkHasManyUnidirectionalParent extends amplify_core.Model {
buffer.write("id=" + "$id" + ", ");
buffer.write("name=" + "$_name" + ", ");
buffer.write("createdAt=" +
(_createdAt != null ? _createdAt!.format() : "null") +
(_createdAt != null ? _createdAt.format() : "null") +
", ");
buffer.write(
"updatedAt=" + (_updatedAt != null ? _updatedAt!.format() : "null"));
"updatedAt=" + (_updatedAt != null ? _updatedAt.format() : "null"));
buffer.write("}");

return buffer.toString();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,10 +105,10 @@ class CpkHasOneUnidirectionalChild extends amplify_core.Model {
buffer.write("id=" + "$id" + ", ");
buffer.write("name=" + "$_name" + ", ");
buffer.write("createdAt=" +
(_createdAt != null ? _createdAt!.format() : "null") +
(_createdAt != null ? _createdAt.format() : "null") +
", ");
buffer.write(
"updatedAt=" + (_updatedAt != null ? _updatedAt!.format() : "null"));
"updatedAt=" + (_updatedAt != null ? _updatedAt.format() : "null"));
buffer.write("}");

return buffer.toString();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -180,10 +180,10 @@ class CpkHasOneUnidirectionalParent extends amplify_core.Model {
buffer.write("explicitChildID=" + "$_explicitChildID" + ", ");
buffer.write("explicitChildName=" + "$_explicitChildName" + ", ");
buffer.write("createdAt=" +
(_createdAt != null ? _createdAt!.format() : "null") +
(_createdAt != null ? _createdAt.format() : "null") +
", ");
buffer.write("updatedAt=" +
(_updatedAt != null ? _updatedAt!.format() : "null") +
(_updatedAt != null ? _updatedAt.format() : "null") +
", ");
buffer.write("cpkHasOneUnidirectionalParentImplicitChildId=" +
"$_cpkHasOneUnidirectionalParentImplicitChildId" +
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -160,10 +160,10 @@ class CpkInventory extends amplify_core.Model {
buffer.write("warehouseId=" + "$_warehouseId" + ", ");
buffer.write("description=" + "$_description" + ", ");
buffer.write("createdAt=" +
(_createdAt != null ? _createdAt!.format() : "null") +
(_createdAt != null ? _createdAt.format() : "null") +
", ");
buffer.write(
"updatedAt=" + (_updatedAt != null ? _updatedAt!.format() : "null"));
"updatedAt=" + (_updatedAt != null ? _updatedAt.format() : "null"));
buffer.write("}");

return buffer.toString();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,10 +108,10 @@ class CpkManyToManyPost extends amplify_core.Model {
buffer.write("id=" + "$id" + ", ");
buffer.write("title=" + "$_title" + ", ");
buffer.write("createdAt=" +
(_createdAt != null ? _createdAt!.format() : "null") +
(_createdAt != null ? _createdAt.format() : "null") +
", ");
buffer.write(
"updatedAt=" + (_updatedAt != null ? _updatedAt!.format() : "null"));
"updatedAt=" + (_updatedAt != null ? _updatedAt.format() : "null"));
buffer.write("}");

return buffer.toString();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -117,10 +117,10 @@ class CpkManyToManyTag extends amplify_core.Model {
buffer.write("id=" + "$id" + ", ");
buffer.write("label=" + "$_label" + ", ");
buffer.write("createdAt=" +
(_createdAt != null ? _createdAt!.format() : "null") +
(_createdAt != null ? _createdAt.format() : "null") +
", ");
buffer.write(
"updatedAt=" + (_updatedAt != null ? _updatedAt!.format() : "null"));
"updatedAt=" + (_updatedAt != null ? _updatedAt.format() : "null"));
buffer.write("}");

return buffer.toString();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,13 +120,13 @@ class CpkOneToOneBidirectionalChildExplicitCD extends amplify_core.Model {
buffer.write("id=" + "$id" + ", ");
buffer.write("name=" + "$_name" + ", ");
buffer.write("belongsToParent=" +
(_belongsToParent != null ? _belongsToParent!.toString() : "null") +
(_belongsToParent != null ? _belongsToParent.toString() : "null") +
", ");
buffer.write("createdAt=" +
(_createdAt != null ? _createdAt!.format() : "null") +
(_createdAt != null ? _createdAt.format() : "null") +
", ");
buffer.write(
"updatedAt=" + (_updatedAt != null ? _updatedAt!.format() : "null"));
"updatedAt=" + (_updatedAt != null ? _updatedAt.format() : "null"));
buffer.write("}");

return buffer.toString();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,13 +120,13 @@ class CpkOneToOneBidirectionalChildExplicitID extends amplify_core.Model {
buffer.write("id=" + "$id" + ", ");
buffer.write("name=" + "$_name" + ", ");
buffer.write("belongsToParent=" +
(_belongsToParent != null ? _belongsToParent!.toString() : "null") +
(_belongsToParent != null ? _belongsToParent.toString() : "null") +
", ");
buffer.write("createdAt=" +
(_createdAt != null ? _createdAt!.format() : "null") +
(_createdAt != null ? _createdAt.format() : "null") +
", ");
buffer.write(
"updatedAt=" + (_updatedAt != null ? _updatedAt!.format() : "null"));
"updatedAt=" + (_updatedAt != null ? _updatedAt.format() : "null"));
buffer.write("}");

return buffer.toString();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,13 +120,13 @@ class CpkOneToOneBidirectionalChildImplicitCD extends amplify_core.Model {
buffer.write("id=" + "$id" + ", ");
buffer.write("name=" + "$_name" + ", ");
buffer.write("belongsToParent=" +
(_belongsToParent != null ? _belongsToParent!.toString() : "null") +
(_belongsToParent != null ? _belongsToParent.toString() : "null") +
", ");
buffer.write("createdAt=" +
(_createdAt != null ? _createdAt!.format() : "null") +
(_createdAt != null ? _createdAt.format() : "null") +
", ");
buffer.write(
"updatedAt=" + (_updatedAt != null ? _updatedAt!.format() : "null"));
"updatedAt=" + (_updatedAt != null ? _updatedAt.format() : "null"));
buffer.write("}");

return buffer.toString();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,13 +120,13 @@ class CpkOneToOneBidirectionalChildImplicitID extends amplify_core.Model {
buffer.write("id=" + "$id" + ", ");
buffer.write("name=" + "$_name" + ", ");
buffer.write("belongsToParent=" +
(_belongsToParent != null ? _belongsToParent!.toString() : "null") +
(_belongsToParent != null ? _belongsToParent.toString() : "null") +
", ");
buffer.write("createdAt=" +
(_createdAt != null ? _createdAt!.format() : "null") +
(_createdAt != null ? _createdAt.format() : "null") +
", ");
buffer.write(
"updatedAt=" + (_updatedAt != null ? _updatedAt!.format() : "null"));
"updatedAt=" + (_updatedAt != null ? _updatedAt.format() : "null"));
buffer.write("}");

return buffer.toString();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -199,10 +199,10 @@ class CpkOneToOneBidirectionalParentCD extends amplify_core.Model {
buffer.write("customId=" + "$_customId" + ", ");
buffer.write("name=" + "$_name" + ", ");
buffer.write("createdAt=" +
(_createdAt != null ? _createdAt!.format() : "null") +
(_createdAt != null ? _createdAt.format() : "null") +
", ");
buffer.write("updatedAt=" +
(_updatedAt != null ? _updatedAt!.format() : "null") +
(_updatedAt != null ? _updatedAt.format() : "null") +
", ");
buffer.write("cpkOneToOneBidirectionalParentCDImplicitChildId=" +
"$_cpkOneToOneBidirectionalParentCDImplicitChildId" +
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -185,10 +185,10 @@ class CpkOneToOneBidirectionalParentID extends amplify_core.Model {
buffer.write("id=" + "$id" + ", ");
buffer.write("name=" + "$_name" + ", ");
buffer.write("createdAt=" +
(_createdAt != null ? _createdAt!.format() : "null") +
(_createdAt != null ? _createdAt.format() : "null") +
", ");
buffer.write("updatedAt=" +
(_updatedAt != null ? _updatedAt!.format() : "null") +
(_updatedAt != null ? _updatedAt.format() : "null") +
", ");
buffer.write("cpkOneToOneBidirectionalParentIDImplicitChildId=" +
"$_cpkOneToOneBidirectionalParentIDImplicitChildId" +
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -121,16 +121,16 @@ class CpkPostTags extends amplify_core.Model {
buffer.write("CpkPostTags {");
buffer.write("id=" + "$id" + ", ");
buffer.write("cpkManyToManyPost=" +
(_cpkManyToManyPost != null ? _cpkManyToManyPost!.toString() : "null") +
(_cpkManyToManyPost != null ? _cpkManyToManyPost.toString() : "null") +
", ");
buffer.write("cpkManyToManyTag=" +
(_cpkManyToManyTag != null ? _cpkManyToManyTag!.toString() : "null") +
(_cpkManyToManyTag != null ? _cpkManyToManyTag.toString() : "null") +
", ");
buffer.write("createdAt=" +
(_createdAt != null ? _createdAt!.format() : "null") +
(_createdAt != null ? _createdAt.format() : "null") +
", ");
buffer.write(
"updatedAt=" + (_updatedAt != null ? _updatedAt!.format() : "null"));
"updatedAt=" + (_updatedAt != null ? _updatedAt.format() : "null"));
buffer.write("}");

return buffer.toString();
Expand Down
Loading

0 comments on commit a3e785a

Please sign in to comment.