PropertyDescriptor constructor
PropertyDescriptor({
- required String name,
- required DeclareProperty annotation,
- required FieldDescriptor field,
- bool hide = false,
- Type? editor,
Implementation
PropertyDescriptor({required this.name, required this.annotation, required this.field, this.hide = false, this.editor}) {
try {
defaultValue = getTypeDescriptor().constructorParameters
.firstWhere((param) => param.name == name)
.defaultValue;
}
catch (e) {
print(1);
}
}