FacetByteSlice class

Specifies the sub-string range a facet feature applies to. Start index is inclusive, end index is exclusive. Indices are zero-indexed, counting bytes of the UTF-8 encoded text. NOTE: some languages, like Javascript, use UTF-16 or Unicode codepoints for string slice indexing; in these languages, convert to byte arrays before working with facets.

https://atprotodart.com/docs/lexicons/app/bsky/richtext/facet#byteslice

Available extensions
Annotations
  • @freezed

Constructors

FacetByteSlice({@Default(appBskyRichtextFacetByteSlice) @JsonKey(name: r'$type') String $type, required int byteStart, required int byteEnd, @JsonKey(name: r'$unknown') Map<String, dynamic>? $unknown})
const
factory
FacetByteSlice.fromJson(Map<String, dynamic> json)
factory

Properties

$type String
The unique namespace for this lex object.
no setterinherited
$unknown Map<String, dynamic>?
Contains unknown objects not defined in Lexicon.
no setterinherited
byteEnd int
no setterinherited
byteStart int
no setterinherited
copyWith → $FacetByteSliceCopyWith<FacetByteSlice>
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
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