getSize function

dynamic getSize(
  1. dynamic title,
  2. dynamic data, {
  3. bool debug = false,
})

Implementation

getSize(title, data, {bool debug = false}) {
  List<int> bytes = utf8.encode(data);
  Uint8List conbytes = Uint8List.fromList(bytes);
  if (debug) {
    print(title + ' // ' + (conbytes.lengthInBytes).toString() + ' Bytes');
  }
}