codeUnitAt static method
Refer to Safe.codeUnitAt
If string is null it is treated as an empty string which will result
in an IndexOutOfBoundsException
Implementation
static int codeUnitAt(String? string, int index) =>
Safe.codeUnitAt(string, index);