MessageLink class
Checked message links. In short: "Click here: {link.Pattern}" => "Click here: {link.Text}".
- Annotations
-
- @freezed
Constructors
-
MessageLink({@JsonKey(name: 'pattern') required String pattern, @JsonKey(name: 'url') required String url, @JsonKey(name: 'text') required String text, @JsonKey(name: 'preview') MessageLinkPreview? preview, @JsonKey(name: 'uploads') List<
Upload> ? uploads, @Default(false) @JsonKey(name: 'nopreview') bool? noPreview, @JsonKey(name: 'youtube_id') String? youtubeId}) -
constfactory
-
MessageLink.fromJson(Map<
String, dynamic> json) -
factory
Properties
-
copyWith
→ $MessageLinkCopyWith<
MessageLink> -
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- noPreview → bool?
-
Website previews disabled.
no setterinherited
- pattern → String
-
Text fragment that should be replaced by link.
no setterinherited
- preview → MessageLinkPreview?
-
Optional preview info, for websites.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- text → String
-
Text replacement.
no setterinherited
-
uploads
→ List<
Upload> ? -
Optional upload info.
no setterinherited
- url → String
-
Internal or external link.
no setterinherited
- youtubeId → String?
-
Optional youtube movie id.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited