import 'dart:convert';
void main() {
var content = "nilpointer.net";
List<int> bytes = utf8.encode(content);
print(bytes);
}
Output
[110, 105, 108, 112, 111, 105, 110, 116, 101, 114, 46, 110, 101, 116]
import 'dart:convert';
void main() {
var content = "nilpointer.net";
List<int> bytes = utf8.encode(content);
print(bytes);
}
[110, 105, 108, 112, 111, 105, 110, 116, 101, 114, 46, 110, 101, 116]