isFactory abstract method

bool isFactory()

Checks if this is a factory constructor.

Returns:

  • true if declared with factory keyword
  • false for generative constructors

Note: Factory constructors may return instances of subtypes.

Implementation

bool isFactory();