StandardEntityDeclaration constructor
const
StandardEntityDeclaration({})
Creates a standard entity declaration
Parameters:
element
: Optional analyzerElement
for static analysisdartType
: Optional analyzerDartType
for static typingtype
: Required runtime Type of the entitydebugger
: Optional custom debug identifier (defaults to "type_$type")
All fields are immutable once created.
Implementation
const StandardEntityDeclaration({
Element? element,
DartType? dartType,
required super.type,
required super.isPublic,
required super.isSynthetic,
required super.name,
String? debugger
}) : _element = element,
_dartType = dartType,
_debugger = debugger ?? "type_$type";