tryToBytes static method

List<int>? tryToBytes(
  1. String? v
)

Implementation

static List<int>? tryToBytes(String? v) {
  if (v == null) return null;
  try {
    return toBytes(v);
  } catch (_) {
    return null;
  }
}