@@ -511,14 +511,13 @@ class _ObjectMetadata implements ObjectMetadata {
511
511
/// It provides a StreamSink and logic which selects whether to use normal
512
512
/// media upload (multipart mime) or resumable media upload.
513
513
class _MediaUploadStreamSink implements StreamSink <List <int >> {
514
- static const int _defaultMaxNormalUploadLength = 1024 * 1024 ;
514
+ static const _maxNormalUploadLength = 1024 * 1024 ;
515
515
final storage_api.StorageApi _api;
516
516
final String _bucketName;
517
517
final String _objectName;
518
518
final storage_api.Object _object;
519
519
final String ? _predefinedAcl;
520
520
final int ? _length;
521
- final int _maxNormalUploadLength;
522
521
int _bufferLength = 0 ;
523
522
final List <List <int >> buffer = < List <int >> [];
524
523
final _controller = StreamController <List <int >>(sync : true );
@@ -532,8 +531,7 @@ class _MediaUploadStreamSink implements StreamSink<List<int>> {
532
531
int ? _state;
533
532
534
533
_MediaUploadStreamSink (this ._api, this ._bucketName, this ._objectName,
535
- this ._object, this ._predefinedAcl, this ._length,
536
- [this ._maxNormalUploadLength = _defaultMaxNormalUploadLength]) {
534
+ this ._object, this ._predefinedAcl, this ._length) {
537
535
if (_length != null ) {
538
536
// If the length is known in advance decide on the upload strategy
539
537
// immediately
0 commit comments