redirectedConstructor property

  1. @override
ConstructorElementRef? get redirectedConstructor
override

The constructor to which this constructor is redirecting, or null if this constructor does not redirect to another constructor or if the library containing this constructor has not yet been resolved.

Implementation

@override
ConstructorElementRef? get redirectedConstructor => _redirectedConstructor;
set redirectedConstructor (ConstructorElementRef? constructor)

Sets the constructor to which this constructor redirects.

@param constructor Reference to the redirected constructor

Implementation

set redirectedConstructor(ConstructorElementRef? constructor) {
  _redirectedConstructor = constructor;
}