length property

FutureOr<int> get length

Implementation

FutureOr<int> get length {
  var data = _data;
  if (data is Uint8List) {
    return data.length;
  } else if (data is DataProvider) {
    return data.length;
  }

  throw StateError('Unknown data type: $data');
}