mirror of
https://github.com/flutter/samples.git
synced 2025-11-12 15:58:32 +00:00
Landing beta changes in master for the new stable release (#747)
This commit is contained in:
@@ -32,7 +32,7 @@ class Catalog extends ChangeNotifier {
|
||||
|
||||
/// The size of the catalog. This is `null` at first, and only when the user
|
||||
/// reaches the end of the catalog, it will hold the actual number.
|
||||
int itemCount;
|
||||
int? itemCount;
|
||||
|
||||
/// After the catalog is disposed, we don't allow it to call
|
||||
/// [notifyListeners].
|
||||
@@ -62,7 +62,7 @@ class Catalog extends ChangeNotifier {
|
||||
|
||||
// If the corresponding page is already in memory, return immediately.
|
||||
if (_pages.containsKey(startingIndex)) {
|
||||
var item = _pages[startingIndex].items[index - startingIndex];
|
||||
var item = _pages[startingIndex]!.items[index - startingIndex];
|
||||
return item;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user