isSynthetic property

  1. @override
bool get isSynthetic
inherited

Whether the element is synthetic.

A synthetic element is an element that is not represented in the source code explicitly, but is implied by the source code, such as the default constructor for a class that does not explicitly define any constructors.

Implementation

@override
bool get isSynthetic {
  return hasModifier(Modifier.SYNTHETIC);
}
set isSynthetic (bool isSynthetic)
inherited

Set whether this element is synthetic.

Implementation

set isSynthetic(bool isSynthetic) {
  setModifier(Modifier.SYNTHETIC, isSynthetic);
}