arity property

  1. @override
int get arity
override

Implementation

@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
}