Skip to content

Commit ac03daa

Browse files
authored
Merge pull request #1 from Jahyrm/fix--check-empty-type
fix: typePrefix empty
2 parents e03cd31 + b22b561 commit ac03daa

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/src/fields.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ abstract class Field<T> {
112112
if (typePrefix == 'dart.core') {
113113
return type;
114114
}
115-
return '${typePrefix != null ? '$typePrefix.' : ''}$type';
115+
return '${typePrefix?.isNotEmpty ?? false ? '$typePrefix.' : ''}$type';
116116
}
117117

118118
/// Checks if the field is nullable.

0 commit comments

Comments
 (0)