properties property

List<PropertyInfo> get properties

Primary ctor params (unnamed if present, else first).

Implementation

List<PropertyInfo> get properties {
  if (constructors.isEmpty) return const [];
  final unnamed = constructors.where((c) => c.isUnnamed);
  if (unnamed.isNotEmpty) return unnamed.first.parameters;
  return constructors.first.parameters;
}