Span class

A Span is the standard way to express inline text within a block

Annotations
  • @JsonSerializable()

Constructors

Span({String type = Span.schemaName, String text = '', List<String> marks = const <String>[]})
Span.fromJson(Map<String, dynamic> json)
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
marks List<String>
Set of annotations and decorations to apply to this span of text. Custom annotations are also allowed.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
text String
Contains the text content of the span
final
type String
final

Methods

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

Constants

schemaName → const String