After adding package
/C:/fluttersdk/flutter_3.3.3/.pub-cache/hosted/pub.dartlang.org/scrollable_positioned_list-0.3.8/lib/src/scrollable_positioned_list.dart:330:61: Error: Method 'readState' cannot be called on 'PageStorageBucket?' because it is potentially null.
'PageStorageBucket' is from 'package:flutter/src/widgets/page_storage.dart' ('/C:/fluttersdk/flutter_3.3.3/packages/flutter/lib/src/widgets/page_storage.dart').
page_storage.dart:1
Try calling using ?. instead.
ItemPosition? initialPosition = PageStorage.of(context).readState(context);
^^^^^^^^^
/C:/fluttersdk/flutter_3.3.3/.pub-cache/hosted/pub.dartlang.org/scrollable_positioned_list-0.3.8/lib/src/scrollable_positioned_list.dart:646:31: Error: Method 'writeState' cannot be called on 'PageStorageBucket?' because it is potentially null.
'PageStorageBucket' is from 'package:flutter/src/widgets/page_storage.dart' ('/C:/fluttersdk/flutter_3.3.3/packages/flutter/lib/src/widgets/page_storage.dart').
page_storage.dart:1
Try calling using ?. instead.
PageStorage.of(context).writeState(
^^^^^^^^^^
After adding package /C:/fluttersdk/flutter_3.3.3/.pub-cache/hosted/pub.dartlang.org/scrollable_positioned_list-0.3.8/lib/src/scrollable_positioned_list.dart:330:61: Error: Method 'readState' cannot be called on 'PageStorageBucket?' because it is potentially null.
'PageStorageBucket' is from 'package:flutter/src/widgets/page_storage.dart' ('/C:/fluttersdk/flutter_3.3.3/packages/flutter/lib/src/widgets/page_storage.dart'). page_storage.dart:1 Try calling using ?. instead. ItemPosition? initialPosition = PageStorage.of(context).readState(context);
/C:/fluttersdk/flutter_3.3.3/.pub-cache/hosted/pub.dartlang.org/scrollable_positioned_list-0.3.8/lib/src/scrollable_positioned_list.dart:646:31: Error: Method 'writeState' cannot be called on 'PageStorageBucket?' because it is potentially null.