LocatorText class

Textual context of the locator.

A Locator Text Object contains multiple text fragments, useful to give a context to the Locator or for highlights. https://github.com/readium/architecture/tree/master/models/locators#the-text-object

@param before The text before the locator. @param highlight The text at the locator. @param after The text after the locator.

Constructors

LocatorText({String? before, String? highlight, String? after})
const
LocatorText.fromJson(Map<String, dynamic>? json)
factory

Properties

after String?
final
before String?
final
hashCode int
The hash code for this object.
no setterinherited
highlight String?
final
props List<Object?>
The list of properties that will be used to determine whether two instances are equal.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stringify bool?
If set to true, the toString method will be overridden to output this instance's props.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Serializes the object to its JSON representation.
override
toString() String
A string representation of this object.
inherited

Operators

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