JSString class

A UTF16 character buffer. The fundamental string representation in JavaScript.

Constructors

JSString(Pointer<NativeType> _pointer)
JSString.fromString(String? string)
Creates a JavaScript string from dart String. string The dart String.

Properties

hashCode int
The hash code for this object.
no setteroverride
length int
Returns the number of Unicode characters in a JavaScript string.
no setter
pointer → dynamic
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
string String?
Returns dart String
no setter

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
release() → void
Releases a JavaScript string.
retain() → void
Retains a JavaScript string. @result (JSStringRef) A JSString that is the same as string.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
override