source property

  1. @override
String? get source
override

The source code of this element.

Implementation

@override
String? get source {
  if (_astNode == null) {
    return null;
  }
  final String source = _astNode!.toSource();
  if (source.isEmpty) {
    return null;
  }
  return source;
}