PropertyInfo class

Constructor parameter / Lua snapshot field.

Constructors

PropertyInfo({required String name, required String dartParamName, bool isNamed = true, required String dartType, required String rustType, bool required = false, bool hasConstructorDefault = false, String? defaultValueCode, String? defaultValue, bool isChildWidget = false, bool isChildList = false, bool isStringList = false, bool isCallback = false, bool isDataClass = false, bool isEnum = false, List<String>? enumValues, String? enumLuaName, String? typeSourceFile, String? nestedClassName})
const

Properties

dartParamName → String
Dart parameter name for the constructor call.
final
dartType → String
final
defaultValue → String?
final
defaultValueCode → String?
Source text of the Dart default expression, when present.
final
enumLuaName → String?
Lua type name for this enum (@LuaEnum(name:) or Dart type name).
final
enumValues → List<String>?
final
hasConstructorDefault → bool
Param has a Dart default — omit from ctor call when JSON key absent.
final
hashCode → int
The hash code for this object.
no setterinherited
isCallback → bool
final
isChildList → bool
final
isChildWidget → bool
final
isDataClass → bool
final
isEnum → bool
final
isNamed → bool
Whether this is a named Dart parameter ({this.x}) vs positional (this.x). Lua/JSON always use name as the key regardless.
final
isNullable → bool
no setter
isOptionalInLua → bool
Optional in Lua: nullable or has a constructor default.
no setter
isStringList → bool
final
name → String
Lua / JSON key (and usually the Dart param name).
final
nestedClassName → String?
final
nonNullableDartType → String
no setter
omitWhenAbsent → bool
Omit named arg when JSON key missing (non-null + Dart default).
no setter
required → bool
Required in Lua (non-nullable, no Dart default).
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
rustType → String
final
typeSourceFile → String?
final

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