ModelField class

Constructors

ModelField({required String name, required String dartType, required FieldCategory category, String? importPath, String? innerType})
const

Properties

baseType String
no setter
category FieldCategory
final
dartType String
final
hashCode int
The hash code for this object.
no setterinherited
importPath String?
Relative import path for custom/enum types (e.g. 'user_model.dart'), or null for primitives, DateTime, List of primitives, and Map.
final
innerType String?
For listCustom and listPrimitive: the element type without the List<> wrapper (e.g. UserModel, String). For other categories: null.
final
isNullable bool
no setter
name String
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited