MentionModel class

Stores all data related to a mention

Constructors

MentionModel({required String tagType, int? id, String? mentionName, int? locationStart, int? locationEnd})
Stores all data related to a mention
const

Properties

fullMention String
Mention name with tag
no setter
hashCode int
The hash code for this object.
no setterinherited
id int?
final
locationEnd int?
End position of the mention in the text
final
locationStart int?
Beginning position of the mention in the text
final
mentionName String?
Contains name of mention without tag
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
tagType String
Related to tag from MentionTextController
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

Static Methods

sortMentionsByLocationStart(MentionModel a, MentionModel b) int
Compare two mention models by position