TitleLink class

Represents a Markdown hyperlink to a title in some Markdown file.

Constructors

TitleLink.new({required String relativePath, required String title, required int level})
TitleLink.fromFileName({required String relativePath, required bool removeMdExtension})

Properties

bullet String
getter/setter pair
fragment String
final
hashCode int
The hash code for this object.
no setterinherited
indentation String
getter/setter pair
level int
final
markDown String
getter/setter pair
relativePath String
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
title String
final

Methods

copyWith({required int level}) TitleLink
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

createFragmentFromTitle(String title) String
Markdown will be translated to HTML by converters. These normally add a anchor or id to a title so that they can be called with a Uri fragment, e.g.: Markdown: # My Awesome Title Html:
createTitleFromRelativePath(String relativePath) String
toBold(String markdown) String