Url constructor
- @JsonSerializable(includeIfNull: false)
const
Url(
{ - required int start,
- required int end,
- required String url,
- required String expandedUrl,
- required String displayUrl,
- String? unwoundUrl,
- String? mediaKey,
})
Implementation
@JsonSerializable(includeIfNull: false)
const factory Url({
/// The start position (zero-based) of the recognized URL within the object.
/// All start indices are inclusive.
required int start,
/// The end position (zero-based) of the recognized URL within the object.
/// This end index is exclusive.
required int end,
/// The URL in the format posted by the user.
required String url,
/// The fully resolved URL.
required String expandedUrl,
/// The URL as displayed in the Twitter client.
required String displayUrl,
/// The full destination URL.
String? unwoundUrl,
/// The unique key to the media.
String? mediaKey,
}) = _Url;