EntityDeclaration constructor

const EntityDeclaration()

An abstract base class that defines a reflective entity in the system, providing a common identifier useful for debugging, logging, or inspection.

This class is intended to be extended by other reflection-related types such as FieldDeclaration, MethodDeclaration, TypeDeclaration, etc.

Example

class ReflectedField extends ReflectedEntity {
  @override
  final String debugIdentifier;

  ReflectedField(this.getDebugIdentifier());
}

final field = ReflectedField('User.name');
print(field.getDebugIdentifier()); // User.name

Implementation

const EntityDeclaration();