ePrivacy and GPDR Cookie Consent by CookieConsent.com
menu

Dart string codeUnitAt() method

Definition and uses

codeUnitAt() method in dart strings is used for finding 16 bit UTF-16  code unit at given index. 

This method takes an integer as an index of the character whose UTF-16 code we wanted. 

This method returns an integer.


Syntax


string.codeUnitAt(int index);

Parameter value


+-----------+------------------------------------------+
| Parameter | Description                              |
+-----------+------------------------------------------+
|   index   | Required! This parameter is used for     |
|           | telling the method which index i wanted. |
+-----------+------------------------------------------+


More Technical details


+-----------------+----------------------------------------------------+
|   Return type   | Integer! This method returns an integer type value |
+-----------------+----------------------------------------------------+

Example:


Comments