finalize method
Implementation
Stream<Uint8List> finalize() {
if (isFinalized) {
throw StateError(
'The MultipartFile has already been finalized. '
'This typically means you are using '
'the same MultipartFile in repeated requests.\n'
'Use MultipartFile.clone() or create a new MultipartFile '
'for further usages.',
);
}
_isFinalized = true;
return _dataBuilder().map(
(e) => e is Uint8List ? e : Uint8List.fromList(e),
);
}