uint8List static method

Tuple2<String, String> uint8List([
  1. bool nullable = false
])

Implementation

static Tuple2<String, String> uint8List([bool nullable = false]) {
  String s;
  String d;
  if (nullable) {
    s = '$ph?.toList(growable: false)';
    d = '$ph == null ? null : $ph is Uint8List ? $ph : Uint8List.fromList($ph.cast<int>())';
  } else {
    s = '$ph.toList(growable: false)';
    d = '$ph is Uint8List ? $ph : Uint8List.fromList($ph.cast<int>())';
  }
  return Tuple2(s, d);
}