MisakiToken class final
Immutable token shared by all language engines.
Constructors
- MisakiToken({required String text, required String tag, required String whitespace, String? phonemes, double? startTimeSeconds, double? endTimeSeconds, TokenMetadata? metadata})
-
Creates a token.
const
Properties
- endTimeSeconds → double?
-
Optional source-aligned end timestamp, in seconds.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- metadata → TokenMetadata?
-
Typed language-specific details, when the selected mode supplies them.
final
- phonemes → String?
-
Token phonemes, or
nullwhen pronunciation is unavailable.final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- startTimeSeconds → double?
-
Optional source-aligned start timestamp, in seconds.
final
- tag → String
-
Backend tag such as a part-of-speech label.
final
- text → String
-
Source text represented by this token.
final
- whitespace → String
-
Exact whitespace rendered after this token.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
render(
{String unknownMarker = defaultUnknownMarker}) → String - Renders this token with the selected unknown marker.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited