length property

int get length

The length of bytes to output.

Implementation

int get length => _data.map((e) {
      if (e is Uint8List) {
        return e.length;
      } else if (e is BytesEmitter) {
        return e.length;
      } else if (e is int) {
        return 1;
      } else {
        throw StateError("Can't handle type: $e");
      }
    }).sum;