Dart code:
print(Uint8List.fromList([1]) + Uint8List.fromList([2]));
Reports exception:
Unhandled exception:
type 'Null' is not a subtype of type 'int' in type cast
#0 List.length= (dart:core-patch/growable_array.dart:222:12)
#1 _IntListMixin.+ (dart:typed_data-patch/typed_data_patch.dart:156:9)
While null safety is on (SDK >= 2.12.0-0).
Expected output:
Dart SDK Version (dart --version)
Dart SDK version: 2.13.0-30.0.dev (dev) (Fri Feb 12 04:33:47 2021 -0800) on "windows_x64"
Dart code:
Reports exception:
While null safety is on (SDK >= 2.12.0-0).
Expected output:
Dart SDK Version (
dart --version)