Dart API ReferencedartdocDocComment

DocComment class

class DocComment {
  final String text;

  /**
   * Non-null if the comment is inherited from another declaration.
   */
  final InterfaceMirror inheritedFrom;

  DocComment(this.text, [this.inheritedFrom = null]) {
    assert(text != null && !text.trim().isEmpty());
  }

  String get html => md.markdownToHtml(text);

  String toString() => text;
}

Constructors

new DocComment(String text, [InterfaceMirror inheritedFrom = null]) #

DocComment(this.text, [this.inheritedFrom = null]) {
  assert(text != null && !text.trim().isEmpty());
}

Properties

final String html #

String get html => md.markdownToHtml(text);

final InterfaceMirror inheritedFrom #

Non-null if the comment is inherited from another declaration.

final InterfaceMirror inheritedFrom;

final String text #

final String text;

Methods

String toString() #

Returns a string representation of this object.

docs inherited from Object
String toString() => text;