visibleForOverriding top-level constant

_VisibleForOverriding const visibleForOverriding

Used to annotate an instance member that was made public so that it could be overridden but that is not intended to be referenced from outside the defining library.

Tools, such as the analyzer, can provide feedback if

  • the annotation is associated with a declaration other than a public instance member in a class or mixin, or
  • the member is referenced outside of the defining library.


const _VisibleForOverriding visibleForOverriding = _VisibleForOverriding();