tryEncode static method
Implementation
static List<int>? tryEncode(String? value,
[StringEncoding type = StringEncoding.utf8]) {
if (value == null) return null;
try {
return encode(value, type);
} catch (e) {
return null;
}
}
static List<int>? tryEncode(String? value,
[StringEncoding type = StringEncoding.utf8]) {
if (value == null) return null;
try {
return encode(value, type);
} catch (e) {
return null;
}
}