If using custom navBarStyle, define this instead of the items property
custom
items
final int? itemCount;