@override int get arity { // Arity of the default (unnamed) constructor final constructor = findConstructor(''); return constructor?.arity ?? 0; // Default constructor has arity 0 if not defined }