Skip to content

Commit 5a837d4

Browse files
committed
Update
1 parent a4146e4 commit 5a837d4

File tree

10 files changed

+314
-293
lines changed

10 files changed

+314
-293
lines changed

README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
# DF - Generate Dart Models Core (DFMDL)
2-
31
<a href="https://www.buymeacoffee.com/robmllze" target="_blank"><img align="right" src="https://cdn.buymeacoffee.com/buttons/default-orange.png" alt="Buy Me A Coffee" height="41" width="174"></a>
42

53
Dart & Flutter Packages by DevCetra.com & contributors.

lib/src/models/data_ref/_data_ref_model.g.dart

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -254,8 +254,8 @@ class DataRefModel extends _DataRefModel {
254254
List<String>? collection,
255255
}) {
256256
return DataRefModel.assertRequired(
257-
id: id ?? src.id,
258-
collection: collection ?? src.collection,
257+
id: id ?? this.id,
258+
collection: collection ?? this.collection,
259259
);
260260
}
261261

@@ -266,8 +266,8 @@ class DataRefModel extends _DataRefModel {
266266
bool collection = true,
267267
}) {
268268
return DataRefModel.assertRequired(
269-
id: id ? src.id : null,
270-
collection: collection ? src.collection : null,
269+
id: id ? this.id : null,
270+
collection: collection ? this.collection : null,
271271
);
272272
}
273273

lib/src/models/field_model/_field_model.g.dart

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -357,14 +357,14 @@ class FieldModel extends _FieldModel {
357357
String? description,
358358
}) {
359359
return FieldModel.assertRequired(
360-
fieldPath: fieldPath ?? src.fieldPath,
361-
fieldType: fieldType ?? src.fieldType,
362-
nullable: nullable ?? src.nullable,
363-
children: children ?? src.children,
364-
primaryKey: primaryKey ?? src.primaryKey,
365-
foreignKey: foreignKey ?? src.foreignKey,
366-
fallback: fallback ?? src.fallback,
367-
description: description ?? src.description,
360+
fieldPath: fieldPath ?? this.fieldPath,
361+
fieldType: fieldType ?? this.fieldType,
362+
nullable: nullable ?? this.nullable,
363+
children: children ?? this.children,
364+
primaryKey: primaryKey ?? this.primaryKey,
365+
foreignKey: foreignKey ?? this.foreignKey,
366+
fallback: fallback ?? this.fallback,
367+
description: description ?? this.description,
368368
);
369369
}
370370

@@ -381,14 +381,14 @@ class FieldModel extends _FieldModel {
381381
bool description = true,
382382
}) {
383383
return FieldModel.assertRequired(
384-
fieldPath: fieldPath ? src.fieldPath : null,
385-
fieldType: fieldType ? src.fieldType : null,
386-
nullable: nullable ? src.nullable : null,
387-
children: children ? src.children : null,
388-
primaryKey: primaryKey ? src.primaryKey : null,
389-
foreignKey: foreignKey ? src.foreignKey : null,
390-
fallback: fallback ? src.fallback : null,
391-
description: description ? src.description : null,
384+
fieldPath: fieldPath ? this.fieldPath : null,
385+
fieldType: fieldType ? this.fieldType : null,
386+
nullable: nullable ? this.nullable : null,
387+
children: children ? this.children : null,
388+
primaryKey: primaryKey ? this.primaryKey : null,
389+
foreignKey: foreignKey ? this.foreignKey : null,
390+
fallback: fallback ? this.fallback : null,
391+
description: description ? this.description : null,
392392
);
393393
}
394394

lib/src/models/generate_dart_model/_generate_dart_model.g.dart

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -304,13 +304,13 @@ class GenerateDartModel extends _GenerateDartModel {
304304
String? description,
305305
}) {
306306
return GenerateDartModel.assertRequired(
307-
className: className ?? src.className,
308-
fields: fields ?? src.fields,
309-
shouldInherit: shouldInherit ?? src.shouldInherit,
307+
className: className ?? this.className,
308+
fields: fields ?? this.fields,
309+
shouldInherit: shouldInherit ?? this.shouldInherit,
310310
inheritanceConstructor:
311-
inheritanceConstructor ?? src.inheritanceConstructor,
312-
keyStringCase: keyStringCase ?? src.keyStringCase,
313-
description: description ?? src.description,
311+
inheritanceConstructor ?? this.inheritanceConstructor,
312+
keyStringCase: keyStringCase ?? this.keyStringCase,
313+
description: description ?? this.description,
314314
);
315315
}
316316

@@ -325,13 +325,13 @@ class GenerateDartModel extends _GenerateDartModel {
325325
bool description = true,
326326
}) {
327327
return GenerateDartModel.assertRequired(
328-
className: className ? src.className : null,
329-
fields: fields ? src.fields : null,
330-
shouldInherit: shouldInherit ? src.shouldInherit : null,
328+
className: className ? this.className : null,
329+
fields: fields ? this.fields : null,
330+
shouldInherit: shouldInherit ? this.shouldInherit : null,
331331
inheritanceConstructor:
332-
inheritanceConstructor ? src.inheritanceConstructor : null,
333-
keyStringCase: keyStringCase ? src.keyStringCase : null,
334-
description: description ? src.description : null,
332+
inheritanceConstructor ? this.inheritanceConstructor : null,
333+
keyStringCase: keyStringCase ? this.keyStringCase : null,
334+
description: description ? this.description : null,
335335
);
336336
}
337337

lib/src/models/referenced_model.dart/_referenced_model.g.dart

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -242,8 +242,8 @@ class ReferencedModel extends _ReferencedModel {
242242
DataRefModel? ref,
243243
}) {
244244
return ReferencedModel.assertRequired(
245-
id: id ?? src.id,
246-
ref: ref ?? src.ref,
245+
id: id ?? this.id,
246+
ref: ref ?? this.ref,
247247
);
248248
}
249249

@@ -254,8 +254,8 @@ class ReferencedModel extends _ReferencedModel {
254254
bool ref = true,
255255
}) {
256256
return ReferencedModel.assertRequired(
257-
id: id ? src.id : null,
258-
ref: ref ? src.ref : null,
257+
id: id ? this.id : null,
258+
ref: ref ? this.ref : null,
259259
);
260260
}
261261

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
name: df_generate_dart_models_core
1414
description: A package that provides core dependencies for models generated with df_generate_dart_models.
15-
version: 0.8.0
15+
version: 0.8.1
1616
repository: https://github.com/DevCetra/df_generate_dart_models_core
1717
funding:
1818
- https://www.buymeacoffee.com/robmllze

0 commit comments

Comments
 (0)