SegmentData class

Available extensions
Annotations
  • @JS()
  • @staticInterop
  • @anonymous

Constructors

SegmentData.new({String? segment, num? index, String? input, bool? isWordLike})
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
index num

Available on SegmentData, provided by the SegmentData$Typings extension

The code unit index in the original input string at which the segment begins.
getter/setter pair
input String

Available on SegmentData, provided by the SegmentData$Typings extension

The complete input string that was segmented.
getter/setter pair
isWordLike bool?

Available on SegmentData, provided by the SegmentData$Typings extension

A boolean value only if granularity is "word"; otherwise, undefined. If granularity is "word", then isWordLike is true when the segment is word-like (i.e., consists of letters/numbers/ideographs/etc.); otherwise, false.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
segment String

Available on SegmentData, provided by the SegmentData$Typings extension

A string containing the segment extracted from the original input string.
getter/setter pair

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