Skip to content

Commit 5393744

Browse files
ci: bump version to v0.13.5
1 parent 5b08da0 commit 5393744

File tree

5 files changed

+207
-165
lines changed

5 files changed

+207
-165
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Changelog
22

3+
## [0.13.5]
4+
5+
- Released @ 6/2025 (UTC)
6+
- Update dependencies
7+
38
## [0.13.4]
49

510
- Released @ 6/2025 (UTC)

README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
<a href="https://www.buymeacoffee.com/dev_cetera" target="_blank"><img align="right" src="https://cdn.buymeacoffee.com/buttons/default-orange.png" height="48"></a>
2-
<a href="https://discord.gg/gEQ8y2nfyX" target="_blank"><img align="right" src="https://raw.githubusercontent.com/dev-cetera/resources/refs/heads/main/assets/icons/discord_icon/discord_icon.svg" height="48"></a>
2+
<a href="https://discord.gg/gEQ8y2nfyX" target="_blank"><img align="right" src="https://raw.githubusercontent.com/dev-cetera/resources/refs/heads/main/assets/discord_icon/discord_icon.svg" height="48"></a>
33

44
Dart & Flutter Packages by dev-cetera.com & contributors.
55

66
[![sponsor](https://img.shields.io/badge/sponsor-grey?logo=github-sponsors)](https://github.com/sponsors/dev-cetera)
77
[![patreon](https://img.shields.io/badge/patreon-grey?logo=patreon)](https://www.patreon.com/c/RobertMollentze)
88
[![pub](https://img.shields.io/pub/v/df_generate_dart_models.svg)](https://pub.dev/packages/df_generate_dart_models)
9-
[![tag](https://img.shields.io/badge/tag-v0.13.4-purple?logo=github)](https://github.com/dev-cetera/df_generate_dart_models/tree/v0.13.4)
9+
[![tag](https://img.shields.io/badge/tag-v0.13.5-purple?logo=github)](https://github.com/dev-cetera/df_generate_dart_models/tree/v0.13.5)
1010
[![license](https://img.shields.io/badge/license-MIT-blue.svg)](https://raw.githubusercontent.com/dev-cetera/df_generate_dart_models/main/LICENSE)
1111

1212
---
@@ -123,4 +123,3 @@ If you're enjoying this package and find it valuable, consider showing your appr
123123
## 🧑‍⚖️ License
124124

125125
This project is released under the [MIT License](https://raw.githubusercontent.com/dev-cetera/df_generate_dart_models/main/LICENSE). See [LICENSE](https://raw.githubusercontent.com/dev-cetera/df_generate_dart_models/main/LICENSE) for more information.
126-

lib/src/extract_insights_from_file.dart

Lines changed: 27 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@ Future<List<ClassInsight<GenerateDartModel>>> extractInsightsFromFile(
3737
await analyzer.analyze(
3838
inclClassAnnotations: {GenerateDartModel.CLASS_NAME},
3939
inclMemberAnnotations: {Field.CLASS_NAME},
40-
onClassAnnotationField: (p) async => temp = _updateFromClassAnnotationField(temp, p),
40+
onClassAnnotationField: (p) async =>
41+
temp = _updateFromClassAnnotationField(temp, p),
4142
onAnnotatedMember: (p) async => temp = _updateFromAnnotatedMember(temp, p),
4243
onPreAnalysis: (_, className) => temp = const GenerateDartModel(fields: {}),
4344
onPostAnalysis: (params) {
@@ -141,23 +142,33 @@ GenerateDartModel _updateFromAnnotatedMember(
141142
params.memberAnnotationFields[FieldModelFieldNames.fieldPath],
142143
);
143144
final a2 = [params.memberName];
144-
final b1 = params.memberAnnotationFields[FieldModelFieldNames.fieldType]?.toStringValue();
145+
final b1 = params.memberAnnotationFields[FieldModelFieldNames.fieldType]
146+
?.toStringValue();
145147
// ignore: deprecated_member_use
146148
final b2 = params.memberType.getDisplayString(withNullability: false);
147-
final nullable = params.memberAnnotationFields[FieldModelFieldNames.nullable]?.toBoolValue();
148-
final primaryKey =
149-
params.memberAnnotationFields[FieldModelFieldNames.primaryKey]?.toBoolValue();
150-
final foreignKey =
151-
params.memberAnnotationFields[FieldModelFieldNames.foreignKey]?.toBoolValue();
152-
final children = (dartObjToObject(
153-
params.memberAnnotationFields[FieldModelFieldNames.children],
154-
) as List?)
155-
?.map((e) => (e as Map).map((k, v) => MapEntry(k.toString(), v)))
156-
.nonNulls
157-
.toList();
158-
final fallback = params.memberAnnotationFields[FieldModelFieldNames.fallback]?.toListValue();
159-
final description =
160-
params.memberAnnotationFields[FieldModelFieldNames.description]?.toStringValue();
149+
final nullable = params
150+
.memberAnnotationFields[FieldModelFieldNames.nullable]
151+
?.toBoolValue();
152+
final primaryKey = params
153+
.memberAnnotationFields[FieldModelFieldNames.primaryKey]
154+
?.toBoolValue();
155+
final foreignKey = params
156+
.memberAnnotationFields[FieldModelFieldNames.foreignKey]
157+
?.toBoolValue();
158+
final children =
159+
(dartObjToObject(
160+
params.memberAnnotationFields[FieldModelFieldNames.children],
161+
)
162+
as List?)
163+
?.map((e) => (e as Map).map((k, v) => MapEntry(k.toString(), v)))
164+
.nonNulls
165+
.toList();
166+
final fallback = params
167+
.memberAnnotationFields[FieldModelFieldNames.fallback]
168+
?.toListValue();
169+
final description = params
170+
.memberAnnotationFields[FieldModelFieldNames.description]
171+
?.toStringValue();
161172
final field = DartField(
162173
fieldPath: a1 ?? a2,
163174
fieldType: b1 ?? b2,

0 commit comments

Comments
 (0)