Previously using 3.7.12 building worked fine. After upgrading to flutter 3.10 carousel_slider breaks with the following error:
Target dart2js failed: Exception: ../../../../../.pub-cache/hosted/pub.dev/carousel_slider-4.2.1/lib/carousel_slider.dart:358:33:
Warning: Operand of null-aware operation '?.' has type 'PageStorageBucket' which excludes null.
- 'PageStorageBucket' is from 'package:flutter/src/widgets/page_storage.dart' ('/opt/flutter/packages/flutter/lib/src/widgets/page_storage.dart').
PageStorage.of(storageContext)?.readState(storageContext)
Previously using 3.7.12 building worked fine. After upgrading to flutter 3.10 carousel_slider breaks with the following error: